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

Refactor describedBy field to a Literal, or add default= #1077

Open
dbirman opened this issue Sep 23, 2024 · 0 comments
Open

Refactor describedBy field to a Literal, or add default= #1077

dbirman opened this issue Sep 23, 2024 · 0 comments

Comments

@dbirman
Copy link
Member

dbirman commented Sep 23, 2024

There is a pylance warning that shows up for the describedBy field when instantiating AindCoreModel objects because it appears to be unset. This can be suppressed either by adding default= explicitly to the Field(), or by replacing the whole _DESCRIBED_BY_URL -> describedBy situation with a Literal[""].

@dbirman dbirman changed the title Refactor describedBy field to a Literal Refactor describedBy field to a Literal, or add default= Sep 23, 2024
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

1 participant