mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
python: Rewrite dict() as {}.
Suggested by the flake8-comprehensions plugin. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a610bd19a1
commit
a276eefcfe
@@ -125,7 +125,7 @@ class EmbeddedBotHandler:
|
||||
return get_bot_config(self.user_profile)
|
||||
except ConfigError:
|
||||
if optional:
|
||||
return dict()
|
||||
return {}
|
||||
raise
|
||||
|
||||
def quit(self, message: str= "") -> None:
|
||||
|
||||
Reference in New Issue
Block a user