You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Use Python syntax for type hints instead of comments (#50)
This changes all type hints to use modern Python (3.6+) syntax instead
of special comments, but leaves the ‘type: ignore’ comments intact.
Most of these changes are purely mechanical, except for these:
- It seems the _message_dict can only ever contain str and int keys,
so make that explicit instead of using `typing.Any`.
- The call to `datetime.time(**kwargs, tzinfo=None)` gives mypy
warnings which can be avoided by reordering the arguments. Changing
it to `datetime.time(tzinfo=None, **kwargs)` will behave the same,
since `kwargs` will never contain a `tzinfo` key, because
`TIME_REGEX` does not have a capturing group with that name.
0 commit comments