diff --git a/manage.py b/manage.py index a17630ac8b..31284beab9 100755 --- a/manage.py +++ b/manage.py @@ -85,7 +85,7 @@ class FilteredManagementUtility(ManagementUtility): "", "Available subcommands:", ] - commands_dict = defaultdict(lambda: []) + commands_dict = defaultdict(list) for name, app in get_filtered_commands().items(): if app == "django.core": app = "django" diff --git a/zerver/lib/request.py b/zerver/lib/request.py index 6e4986f347..aeb6392975 100644 --- a/zerver/lib/request.py +++ b/zerver/lib/request.py @@ -63,7 +63,7 @@ class RequestNotes(BaseNotes[HttpRequest, "RequestNotes"]): realm: Optional[Realm] = None has_fetched_realm: bool = False set_language: Optional[str] = None - ratelimits_applied: List[rate_limiter.RateLimitResult] = field(default_factory=lambda: []) + ratelimits_applied: List[rate_limiter.RateLimitResult] = field(default_factory=list) query: Optional[str] = None error_format: Optional[str] = None placeholder_open_graph_description: Optional[str] = None