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

Add mixin types feature to ADT #10

Merged
merged 1 commit into from
Nov 8, 2022
Merged

Add mixin types feature to ADT #10

merged 1 commit into from
Nov 8, 2022

Conversation

alexreinking
Copy link
Contributor

Now, by specifying mixin_types={'prod': cls} one can inject an additional base class to any production prod. This enables users to attach methods to the generated classes. It might also be useful to static type checkers by setting a base type to be one of Python 3.8's "Protocol" types.

Now, by specifying mixin_types={'prod': cls} one can inject an additional
base class to any production `prod`. This enables users to attach methods
to the generated classes. It might also be useful to static type checkers
by setting a base type to be one of Python 3.8's "Protocol" types.
@alexreinking alexreinking merged commit 5c29b7a into master Nov 8, 2022
@alexreinking alexreinking deleted the base-classes branch November 8, 2022 00:40
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

Successfully merging this pull request may close these issues.

None yet

1 participant