Skip to content

Commit 87d4bcd

Browse files
nijelmichael-smt
authored andcommitted
Fixed type annotations
Co-authored-by: Michal Čihař <michal@cihar.com>
1 parent d3ff029 commit 87d4bcd

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

weblate/accounts/management/commands/list_notification_config.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
)
2222

2323

24-
def sorted_handlers(handlers: Iterable[Notification]) -> Iterable[Notification]:
24+
def sorted_handlers(
25+
handlers: Iterable[type[Notification]],
26+
) -> Iterable[type[Notification]]:
2527
return sorted(handlers, key=lambda handler: handler.__name__)
2628

2729

@@ -38,9 +40,9 @@ def handle(self, *args, **options) -> None:
3840
self.add_section("notification-scopes", scope_content)
3941

4042
frequency_content = []
41-
for scope in NotificationFrequency:
43+
for frequency in NotificationFrequency:
4244
frequency_content.extend(
43-
[f"``{scope.value}``", f" :guilabel:`{scope.label}`"]
45+
[f"``{frequency.value}``", f" :guilabel:`{frequency.label}`"]
4446
)
4547
self.add_section("notification-frequencies", frequency_content)
4648

0 commit comments

Comments
 (0)