mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-19 13:34:17 -05:00
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. |
||
---|---|---|
.. | ||
__init__.py | ||
_base.py | ||
events.py | ||
federation.py |