mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
7862f821de
This change makes mypy complain if the constants are ever reassigned, and, more usefully, makes mypy type them as `Literal`s instead of `str`s, allowing code of the following form to pass mypy: ```py def do_something(membership: Literal["join", "leave"], ...): ... do_something(Membership.JOIN, ...) ``` |
||
---|---|---|
.. | ||
__init__.py | ||
auth_blocking.py | ||
auth.py | ||
constants.py | ||
errors.py | ||
filtering.py | ||
presence.py | ||
ratelimiting.py | ||
room_versions.py | ||
urls.py |