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

Use of mutable default for dataclass field requirements throws an error in python >=3.11 #70

Closed
elbayadm opened this issue Jan 7, 2025 · 0 comments · Fixed by #71
Closed
Assignees

Comments

@elbayadm
Copy link
Contributor

elbayadm commented Jan 7, 2025

Data pre-processing script in large_concept_model fails with the error

ValueError: mutable default <class
'stopes.core.stopes_module.Requirements'> for field requirements is not allowed: use default_factory

This is thrown by stopes/modules/preprocess/line_processor.py", line 62.
source: facebookresearch/large_concept_model#8 (comment)

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 a pull request may close this issue.

1 participant