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

Pydantic warning when running any command #25

Open
datum-dpoulin opened this issue Nov 28, 2024 · 0 comments
Open

Pydantic warning when running any command #25

datum-dpoulin opened this issue Nov 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@datum-dpoulin
Copy link
Contributor

The following warning (does not seem to affect behavior) is printed out at the top anytime mio is run:

/homes/dpoulin/PycharmProjects/mooreio/venv/lib64/python3.12/site-packages/pydantic/_internal/_generate_schema.py:547: UserWarning: [typing.List[typing.Annotated[str, StringConstraints(strip_whitespace=None, to_upper=None, to_lower=None, strict=None, min_length=None, max_length=None, pattern=re.compile('^(~|.)?/?([\w\-.]+/)*[\w\-.]+/?$'))]]] is not a Python type (it may be an instance of an object), Pydantic will allow any object with no validation since we cannot even enforce that the input is an instance of the given type. To get rid of this error wrap the type with pydantic.SkipValidation.

@datum-dpoulin datum-dpoulin added the bug Something isn't working label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant