ruff: Fix PIE807 Prefer `list()` over useless lambda.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-01-02 19:18:46 -08:00 committed by Tim Abbott
parent 46cdcd3f33
commit 234d628fee
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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