forked from MirrorHub/synapse
67ff7b8ba0
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.
1 line
72 B
Text
1 line
72 B
Text
Improve typing annotations in `synapse.replication.tcp.streams.Stream`.
|