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
msgspec: Mandatory attributes follow optional ones #1919
Comments
maringuu
added a commit
to maringuu/fkie-cve-make-release
that referenced
this issue
May 6, 2024
- Resolve circular imports (koxudaxi/datamodel-code-generator#836) - Use kw_only=True (koxudaxi/datamodel-code-generator#1919)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
class CveItem
(and most other classes as well). It cannot be imported because a mandatory attribute follows an optional one, which is invalid in the generated__init__
.Expected behavior
Assuming #836 is fixed, the model should import correctly.
Workaround
Use
kw_only=True
Setup
The text was updated successfully, but these errors were encountered: