summary refs log tree commit diff
path: root/changelog.d/7291.misc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improve type checking in `replication.tcp.Stream` (#7291)Richard van der Hoff2020-04-171-0/+1
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.