mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
ruff: Fix SIM118 Use key in dict instead of key in dict.keys().
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a6442288cf
commit
e1ed44907b
@@ -1627,7 +1627,7 @@ def parse_message_content_edit_or_delete_limit(
|
||||
*,
|
||||
setting_name: str,
|
||||
) -> Optional[int]:
|
||||
if isinstance(value, str) and value in special_values_map.keys():
|
||||
if isinstance(value, str) and value in special_values_map:
|
||||
return special_values_map[value]
|
||||
if isinstance(value, str) or value <= 0:
|
||||
raise RequestVariableConversionError(setting_name, value)
|
||||
|
||||
Reference in New Issue
Block a user