Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

timezone: Remove dead assignment with type: ignore issue.

Anders Kaseorgb7241f20d520
diff --git a/zerver/lib/timezone.py b/zerver/lib/timezone.py
index b043af89c51..99fe727ca2f 100644
--- a/zerver/lib/timezone.py
+++ b/zerver/lib/timezone.py
@@ -19,7 +19,6 @@ def _calculate_timezones() -> Dict[str, Union[int, Any]]:
normal = datetime.datetime(2009, 9, 1) # Any random date is fine here.
for str in pytz.all_timezones:
tz = pytz.timezone(str)
- offset = tz.utcoffset(normal).seconds # type: ignore[union-attr] # mypy detects utcoffset returns None.
timedelta = tz.utcoffset(normal)
if not timedelta:
continue