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

Exception when importing ActionOption on Python 3.11 #357

Closed
mjcaley opened this issue Oct 28, 2022 · 0 comments
Closed

Exception when importing ActionOption on Python 3.11 #357

mjcaley opened this issue Oct 28, 2022 · 0 comments
Labels

Comments

@mjcaley
Copy link
Owner

mjcaley commented Oct 28, 2022

Python 3.11 made a change to data class fields that requires defaults be hashable, causing an exception.

ValueError: mutable default <class 'aiospamc.options.ActionOption'> for field action is not allowed: use default_factory

@mjcaley mjcaley added the bug label Oct 28, 2022
mjcaley added a commit that referenced this issue Oct 28, 2022
Added support for Python 3.11 and updated dependencies #355
Fixed bug with ActionOption and default data class fields required to be hashable #357
@mjcaley mjcaley closed this as completed Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant