Skip to content

Commit f201a73

Browse files
committed
style: format __init__.py via ruff
1 parent c8366ac commit f201a73

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

zulip/zulip/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -597,10 +597,7 @@ def error_retry(error_string: str) -> bool:
597597
if self.verbose:
598598
if not query_state["had_error_retry"]:
599599
sys.stdout.write(
600-
"zulip API({}): connection error{} -- retrying.".format(
601-
url.split(API_VERSTRING, 2)[0],
602-
error_string,
603-
)
600+
f"zulip API({url.split(API_VERSTRING, 2)[0]}): connection error{error_string} -- retrying."
604601
)
605602
query_state["had_error_retry"] = True
606603
else:
@@ -1640,6 +1637,7 @@ def get_storage(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any
16401637
method="GET",
16411638
request=request,
16421639
)
1640+
16431641
def remove_storage(self, request: Dict[str, Any]) -> Dict[str, Any]:
16441642
"""
16451643
Remove entries from the bot's storage.
@@ -1662,7 +1660,6 @@ def remove_storage(self, request: Dict[str, Any]) -> Dict[str, Any]:
16621660
request=request or {},
16631661
)
16641662

1665-
16661663
def set_typing_status(self, request: Dict[str, Any]) -> Dict[str, Any]:
16671664
"""
16681665
Example usage:

0 commit comments

Comments
 (0)