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: use Annotated with StringConstraints instead of constr #394

Merged
merged 4 commits into from
Apr 11, 2024

Conversation

korikuzma
Copy link
Contributor

close #350

  • constr is discouraged and will be deprecated in Pydantic 3.0. Per docs, constr returns a type, which doesn't play well with static analysis tools

https://docs.pydantic.dev/2.6/api/types/#pydantic.types.constr--__tabbed_1_1

@korikuzma korikuzma added the priority:low Low priority label Apr 10, 2024
@korikuzma korikuzma self-assigned this Apr 10, 2024
@korikuzma korikuzma requested review from a team as code owners April 10, 2024 20:12
* constr is discouraged and will be deprecated in Pydantic 3.0. Per
  docs, constr returns a type, which doesn't play well with static
  analysis tools
@korikuzma korikuzma merged commit 15af3b5 into main Apr 11, 2024
8 checks passed
@korikuzma korikuzma deleted the issue-350 branch April 11, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:low Low priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace constr with StringConstraints/Field
2 participants