Skip to content

Commit

Permalink
Replaced Dict and List with dict and list
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminmah committed Aug 9, 2024
1 parent 3efbfd1 commit 8172791
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bugbot/rules/inactive_revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# You can obtain one at http://mozilla.org/MPL/2.0/.

import re
from typing import Dict, List

from dateutil.relativedelta import relativedelta
from jinja2 import Environment, FileSystemLoader, Template
Expand Down Expand Up @@ -169,8 +168,8 @@ def _find_last_action(self, revision_id):

return last_action_by, last_transaction

def _get_revisions_with_inactive_action(self, rev_ids: list) -> Dict[int, dict]:
revisions: List[dict] = []
def _get_revisions_with_inactive_action(self, rev_ids: list) -> dict[int, dict]:
revisions: list[dict] = []

for _rev_ids in Connection.chunks(rev_ids, PHAB_CHUNK_SIZE):
for revision in self._fetch_revisions(_rev_ids):
Expand Down Expand Up @@ -238,7 +237,7 @@ def _get_revisions_with_inactive_action(self, rev_ids: list) -> Dict[int, dict]:
list(user_phids), keep_active=True
)

result: Dict[int, dict] = {}
result: dict[int, dict] = {}
for revision in revisions:
author_phid = revision["author_phid"]
if author_phid in users:
Expand Down

0 comments on commit 8172791

Please sign in to comment.