Skip to content

Commit 8172791

Browse files
committed
Replaced Dict and List with dict and list
1 parent 3efbfd1 commit 8172791

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

bugbot/rules/inactive_revision.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# You can obtain one at http://mozilla.org/MPL/2.0/.
44

55
import re
6-
from typing import Dict, List
76

87
from dateutil.relativedelta import relativedelta
98
from jinja2 import Environment, FileSystemLoader, Template
@@ -169,8 +168,8 @@ def _find_last_action(self, revision_id):
169168

170169
return last_action_by, last_transaction
171170

172-
def _get_revisions_with_inactive_action(self, rev_ids: list) -> Dict[int, dict]:
173-
revisions: List[dict] = []
171+
def _get_revisions_with_inactive_action(self, rev_ids: list) -> dict[int, dict]:
172+
revisions: list[dict] = []
174173

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

241-
result: Dict[int, dict] = {}
240+
result: dict[int, dict] = {}
242241
for revision in revisions:
243242
author_phid = revision["author_phid"]
244243
if author_phid in users:

0 commit comments

Comments
 (0)