synapse-product/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 Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
auth_blocking.py Fix AuthBlocking check when requester is appservice (#10881) 2021-09-24 10:41:18 +01:00
auth.py Add missing type hints to synapse.api. (#11109) 2021-10-18 15:01:10 -04:00
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 Add missing type hints to synapse.api. (#11109) 2021-10-18 15:01:10 -04:00
ratelimiting.py Add missing type hints to synapse.api. (#11109) 2021-10-18 15:01:10 -04:00
room_versions.py Rename MSC2716 things from chunk to batch to match /batch_send endpoint (#10838) 2021-09-21 15:06:28 -05:00
urls.py Add support for /_matrix/media/v3 APIs (#11371) 2021-11-17 15:30:24 +00:00