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

Add explicit default= for schema_version and describedBy fields #1102

Conversation

dbirman
Copy link
Member

@dbirman dbirman commented Oct 10, 2024

Without this PR you get pylance warnings that there is no argument set for describedBy and schema_version when you try to create any of the core models. By setting the default the warnings go away. No tests change, but not knowing pydantic deeply I don't know if this has other consequences (I don't think it does).

Could also be that my pylance settings are junk?

closes #1076
closes #1077

Adding an image to show what the warning looks like:

Screenshot 2024-10-11 at 2 45 16 PM

@dbirman dbirman linked an issue Oct 10, 2024 that may be closed by this pull request
@dbirman dbirman requested review from jtyoung84 and dyf and removed request for jtyoung84 October 10, 2024 21:44
@dbirman dbirman added this pull request to the merge queue Oct 18, 2024
Merged via the queue into dev with commit d080f14 Oct 18, 2024
5 checks passed
@dbirman dbirman deleted the 1076-add-explicit-default-to-schema_version-to-suppress-pylance-warnings branch October 18, 2024 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants