-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Attrs default factory is not used by default #299
Labels
bug
Something isn't working
Comments
Thank you very much for reporting! Good to know that there is interest for the attrs support. The field factory should be an easy fix. Will do it soon. |
mauvilsa
added a commit
that referenced
this issue
Jun 14, 2023
5 tasks
@bilelomrani1 I have implemented a fix #303. You can try it out by installing as:
|
Hi @mauvilsa, it works perfectly thank you very much. |
mauvilsa
added a commit
that referenced
this issue
Jun 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug report
When using a
factory
to build a default value in aattrs
dataclass,jsonargparse
ignores the factory at configuration time and considers the field as empty.To reproduce
Expected behavior
The default factory should be called and the following should be printed to stdout:
Environment
pip install jsonargparse
The text was updated successfully, but these errors were encountered: