We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
Final has been added in PEP 591 as an alternative to class variables. We can use it on a par with ClassVar for discriminator values:
Final
ClassVar
Describe the solution you'd like
We should skip them as we do with ClassVar variables.
The text was updated successfully, but these errors were encountered:
Seems like current behaviour in Python is not to treat Final attributes inside dataclasses as ClassVars:
We should do the same.
Sorry, something went wrong.
typing.Literal
Closed by #113
Fatal1ty
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
Final
has been added in PEP 591 as an alternative to class variables. We can use it on a par withClassVar
for discriminator values:Describe the solution you'd like
We should skip them as we do with
ClassVar
variables.The text was updated successfully, but these errors were encountered: