mirror of https://github.com/zulip/zulip.git
ruff: Fix PIE807 Prefer `list()` over useless lambda.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
46cdcd3f33
commit
234d628fee
|
@ -85,7 +85,7 @@ class FilteredManagementUtility(ManagementUtility):
|
||||||
"",
|
"",
|
||||||
"Available subcommands:",
|
"Available subcommands:",
|
||||||
]
|
]
|
||||||
commands_dict = defaultdict(lambda: [])
|
commands_dict = defaultdict(list)
|
||||||
for name, app in get_filtered_commands().items():
|
for name, app in get_filtered_commands().items():
|
||||||
if app == "django.core":
|
if app == "django.core":
|
||||||
app = "django"
|
app = "django"
|
||||||
|
|
|
@ -63,7 +63,7 @@ class RequestNotes(BaseNotes[HttpRequest, "RequestNotes"]):
|
||||||
realm: Optional[Realm] = None
|
realm: Optional[Realm] = None
|
||||||
has_fetched_realm: bool = False
|
has_fetched_realm: bool = False
|
||||||
set_language: Optional[str] = None
|
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
|
query: Optional[str] = None
|
||||||
error_format: Optional[str] = None
|
error_format: Optional[str] = None
|
||||||
placeholder_open_graph_description: Optional[str] = None
|
placeholder_open_graph_description: Optional[str] = None
|
||||||
|
|
Loading…
Reference in New Issue