diff options
author | Sean Quah <seanq@element.io> | 2021-11-12 19:57:42 +0000 |
---|---|---|
committer | Sean Quah <seanq@element.io> | 2021-11-16 13:55:20 +0000 |
commit | b43d085472390c77691fbbd86b3e66b4a1a0cb6d (patch) | |
tree | 8923cd324ddcfedfcbeae5dfb03f097157d8be1a /scripts-dev/tail-synapse.py | |
parent | Add newsfile (diff) | |
download | synapse-b43d085472390c77691fbbd86b3e66b4a1a0cb6d.tar.xz |
Convert strings in `synapse.api.constants` to enums or `Final`
This change makes mypy type the constants as `Literal`s instead of `str`s, allowing code of the following form to pass mypy: ```py def do_something( membership: Literal[Membership.JOIN, Membership.LEAVE], ... ): ... do_something(Membership.JOIN, ...) ```
Diffstat (limited to 'scripts-dev/tail-synapse.py')
0 files changed, 0 insertions, 0 deletions