synapse/synapse
Richard van der Hoff 67ff7b8ba0
Improve type checking in replication.tcp.Stream (#7291)
The general idea here is to get rid of the type: ignore annotations on all of the current_token and update_function assignments, which would have caught #7290.

After a bit of experimentation, it seems like the least-awful way to do this is to pass the offending functions in as parameters to the Stream constructor. Unfortunately that means that the concrete implementations no longer have the same constructor signature as Stream itself, which means that it gets hard to correctly annotate STREAMS_MAP.

I've also introduced a couple of new types, to take out some duplication.
2020-04-17 14:49:55 +01:00
..
_scripts Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
api Convert http.HTTPStatus objects to their int equivalent (#7188) 2020-04-03 14:26:07 +01:00
app Move client command handling out of TCP protocol (#7185) 2020-04-06 09:58:42 +01:00
appservice Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
config Clarify the comments for media_storage_providers options (#7272) 2020-04-17 07:09:33 -04:00
crypto Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
events Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
federation Add typing information to federation_server. (#7219) 2020-04-07 15:03:23 -04:00
groups Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
handlers Convert auth handler to async/await (#7261) 2020-04-15 12:40:18 -04:00
http Fix "'NoneType' has no attribute start|stop" logcontext errors (#7181) 2020-03-31 15:18:41 +01:00
logging Reduce the number of calls to resource.getrusage (#7183) 2020-04-03 13:21:30 +01:00
metrics Add prometheus metrics for the number of active pushers (#7103) 2020-03-19 10:00:24 +00:00
module_api Convert auth handler to async/await (#7261) 2020-04-15 12:40:18 -04:00
push Do not treat display names as globs for push rules. (#7271) 2020-04-16 10:52:55 -04:00
replication Improve type checking in replication.tcp.Stream (#7291) 2020-04-17 14:49:55 +01:00
res/templates Do not allow a deactivated user to login via SSO. (#7240) 2020-04-09 13:28:13 -04:00
rest Allow specifying the value of Accept-Language header for URL previews (#7265) 2020-04-15 13:35:29 +01:00
server_notices Server notices: Dissociate room creation/lookup from invite (#7199) 2020-04-04 17:27:45 +02:00
spam_checker_api Add type hints to the spam check module (#6915) 2020-02-14 12:49:40 -05:00
state Improve get auth chain difference algorithm. (#7095) 2020-03-18 16:46:41 +00:00
static Make it clearer to the user that they haven't overridden onLogin/Register (#7237) 2020-04-09 12:38:38 +01:00
storage Fix a potentially-huge sql query (#7274) 2020-04-15 10:16:35 +01:00
streams Bump version of mypy 2019-12-12 15:21:12 +00:00
util Rewrite prune_old_outbound_device_pokes for efficiency (#7159) 2020-03-30 19:06:52 +01:00
__init__.py 1.12.3 2020-04-03 10:57:07 +01:00
event_auth.py Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
notifier.py Wake up transaction queue when remote server comes back online (#6706) 2020-01-17 10:27:19 +00:00
python_dependencies.py Fix the debian build in a better way. (#7212) 2020-04-03 10:23:36 +01:00
secrets.py
server.py Move client command handling out of TCP protocol (#7185) 2020-04-06 09:58:42 +01:00
server.pyi Move client command handling out of TCP protocol (#7185) 2020-04-06 09:58:42 +01:00
types.py Validate the alt_aliases property of canonical alias events (#6971) 2020-03-03 07:12:45 -05:00
visibility.py Refactor a bit 2020-03-11 18:49:41 +00:00