mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
ruff: Fix RUF025 Unnecessary dict comprehension for iterable.
This is a preview rule, not yet enabled by default.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 869d9d9a79)
This commit is contained in:
committed by
Tim Abbott
parent
c9964d1593
commit
9f02686885
@@ -165,7 +165,7 @@ def auth_enabled_helper(
|
||||
else:
|
||||
enabled_method_dict = realm.authentication_methods_dict()
|
||||
else:
|
||||
enabled_method_dict = {method: True for method in AUTH_BACKEND_NAME_MAP}
|
||||
enabled_method_dict = dict.fromkeys(AUTH_BACKEND_NAME_MAP, True)
|
||||
|
||||
pad_method_dict(enabled_method_dict)
|
||||
for supported_backend in supported_auth_backends():
|
||||
|
||||
Reference in New Issue
Block a user