What's needed?
We need to make sure type hinting catches as many bugs as possible. ChannelRegistry is currently using Any as the message type when creating Senders and Receivers, which make all type hinting beyond that point useless, as Any will satisfy any type.
For example, we got this bug unnoticed for quite a while because of this issue:
Proposed solution
Make ChannelRegistry generic. We might need to create a registry of registries to use different types though.
Use cases
No response
Alternatives and workarounds
No response
Additional context
No response
What's needed?
We need to make sure type hinting catches as many bugs as possible.
ChannelRegistryis currently usingAnyas the message type when creatingSenders andReceivers, which make all type hinting beyond that point useless, asAnywill satisfy any type.For example, we got this bug unnoticed for quite a while because of this issue:
Quantity#804Proposed solution
Make
ChannelRegistrygeneric. We might need to create a registry of registries to use different types though.Use cases
No response
Alternatives and workarounds
No response
Additional context
No response