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

Fix multiple inheritance in Python 3.11 #1587

Merged

Conversation

lrzpellegrini
Copy link
Collaborator

@lrzpellegrini lrzpellegrini commented Jan 29, 2024

This fixes the multiple inheritance issue in Python 3.11.

Strategy constructors now accept all arguments as keyword-only. The main elements of the class hierarchy now use a cooperative constructor mechanism. The deprecation of the previous positional-based mechanism is handled to allow users to use existing code (Avalanche will print a warning if positional arguments declared/used).

This also has an additional change to the coveralls action to align it to the unit-test one.

@lrzpellegrini lrzpellegrini marked this pull request as ready for review February 2, 2024 15:46
eval_mb_size=10,
device="cuda" if use_gpu else "cpu",
)
with self.assertWarns(PositionalArgumentDeprecatedWarning):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move test?

@lrzpellegrini lrzpellegrini merged commit a4ec807 into ContinualAI:master Feb 5, 2024
11 of 12 checks passed
@lrzpellegrini lrzpellegrini deleted the fix_multiple_inheritance_py311 branch February 5, 2024 17:21
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.

2 participants