Skip to content

ChannelRegistry should be generic #806

@llucax

Description

@llucax

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

Metadata

Metadata

Assignees

Labels

scope:breaking-changeBreaking change, users will need to update their codetype:enhancementNew feature or enhancement visitble to userstype:tech-debtImproves the project without visible changes for users

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions