mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 18:13:58 +00:00
python: Convert last type comments to annotations.
We had skipped these in #14693 so we could keep generating a friendly error on Python 3.5, but we gave that up in #19801. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
548dd5a402
commit
2762121162
@@ -421,7 +421,7 @@ def parse_os_release() -> Dict[str, str]:
|
||||
developers, but we avoid using it, as it is not available on
|
||||
RHEL-based platforms.
|
||||
"""
|
||||
distro_info = {} # type: Dict[str, str]
|
||||
distro_info: Dict[str, str] = {}
|
||||
with open("/etc/os-release") as fp:
|
||||
for line in fp:
|
||||
line = line.strip()
|
||||
|
||||
Reference in New Issue
Block a user