synapse-product/synapse/replication
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
..
http Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
slave Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
tcp Improve type checking in replication.tcp.Stream (#7291) 2020-04-17 14:49:55 +01:00
__init__.py Add a /replication API for extracting the updates that happened on 2016-03-01 14:49:41 +00:00