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
Describe the bug Default parameter for field that is passed by variable is not recognized
To Reproduce
from typing import Final from pydantic import BaseModel, Field VERSION: Final = 1 class MyModel(BaseModel): version = Field(VERSION, const=True) MyModel()
Expected behavior If I pass 1 directly it works as desired and no warning is shown.
Environments (please complete the following information):
The text was updated successfully, but these errors were encountered:
@spacemanspiff2007 Thank you for creating this issue. I will fix it.
Sorry, something went wrong.
I believe this problem is resolved.
Yes - thank you very much for the fix!
No branches or pull requests
Describe the bug
Default parameter for field that is passed by variable is not recognized
To Reproduce
Expected behavior
If I pass 1 directly it works as desired and no warning is shown.
Environments (please complete the following information):
The text was updated successfully, but these errors were encountered: