Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove the message type check from the publisher #256

Open
pavel-kirienko opened this issue Nov 9, 2022 · 0 comments
Open

Remove the message type check from the publisher #256

pavel-kirienko opened this issue Nov 9, 2022 · 0 comments

Comments

@pavel-kirienko
Copy link
Member

This check is unnecessarily restrictive as it makes it impossible to publish sub/supertypes:

if not isinstance(message, self.dtype):
raise TypeError(f"Expected a message object of type {self.dtype}, found this: {message}")

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant