Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Handler can probably benefit from making it an abstract class conxtructed by a metaclass, not a namedtuple #25

Open
KOLANICH opened this issue Jun 24, 2021 · 2 comments

Comments

@KOLANICH
Copy link

KOLANICH commented Jun 24, 2021

So you will be able to specify the interface and maybe reuse some code.

A metaclass can do the work on autoregistration in into the registry.

@KOLANICH KOLANICH changed the title Handler can probably benefit from making it an abstract class, not a namedtuple Handler can probably benefit from making it an abstract class conxtructec by a metaclass, not a namedtuple Jun 24, 2021
@KOLANICH KOLANICH changed the title Handler can probably benefit from making it an abstract class conxtructec by a metaclass, not a namedtuple Handler can probably benefit from making it an abstract class conxtructed by a metaclass, not a namedtuple Jun 24, 2021
@pombredanne
Copy link
Member

I am open to a better design. Would you be willing to help? What would it look like in particular?

@KOLANICH
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants