By analogy, I assume the line:
"max_length": getattr(value, "max_length", getattr(value, "max_length", None)),
should be:
"max_length": getattr(value, "max_length", getattr(value, "max_items", None)),
(if it is not a typo, the second getattr
is redundant and could be removed)
polyfactory/polyfactory/field_meta.py
Lines 211 to 212 in b479e4a
polyfactory/polyfactory/field_meta.py
Line 211 in b479e4a
No response
No response
No response
No response
2.12.0
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too