MatrixSynapse/synapse/api
Sean Quah 7862f821de
Annotate string constants in `synapse.api.constants` with `Final` (#11356)
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, ...)
```
2021-11-25 16:14:23 +00:00
..
__init__.py
auth.py
auth_blocking.py
constants.py Annotate string constants in `synapse.api.constants` with `Final` (#11356) 2021-11-25 16:14:23 +00:00
errors.py Make `check_event_allowed` module API callback not fail open (accept events) when an exception is raised (#11033) 2021-11-01 15:45:56 +00:00
filtering.py Support filtering by relations per MSC3440 (#11236) 2021-11-09 08:10:58 -05:00
presence.py
ratelimiting.py
room_versions.py
urls.py Add support for `/_matrix/media/v3` APIs (#11371) 2021-11-17 15:30:24 +00:00