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

Type | None or Optional[Type] don't work when default value is None #320

Open
dave-epstein opened this issue Jul 22, 2024 · 1 comment
Open

Comments

@dave-epstein
Copy link

The parser throws an invalid value error if you try to set a dataclass attribute e.g. of type int | None to an int when the default value in the dataclass definition is None.

@lebrice
Copy link
Owner

lebrice commented Oct 18, 2024

Hey there @dave-epstein , sorry for the SUPER late reply.

Is this still an issue? (I'm thinking that #323 might have fixed this perhaps?)

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

No branches or pull requests

2 participants