Pydantic
Data validation using Python type hints.
Friendly. Welcomes AI-assisted work.
Pydantic welcomes the use of AI when contributing, including for code, but contributors must fully understand the code they submit. Maintainers may close any pull request at their discretion, including spam-like submissions or incoherent AI-generated PR descriptions, and can ban repeat offenders.
Policy by area
- Code contributionsPatches, pull requests and other changes written with AI tools.
- Friendly
- Contributor takes full responsibility
- Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
- No policy
- AI-written textPull request descriptions, issue comments and summaries written by AI.
- Friendly
What is allowed and what is not
Code contributions
Autocomplete · Allowed with conditions
AI use is welcome for code contributions, but the contributor should fully understand the submitted code.
- Take full responsibility: Certify that you fully understand the code being submitted
Quote
We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted.
Clone your fork and cd into the repo directory Small fixes · Allowed with conditions
Small AI-assisted fixes are welcome as long as the contributor fully understands the submitted code.
- Take full responsibility: Certify that you fully understand the code being submitted
Quote
We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted.
Clone your fork and cd into the repo directory Large or generated changes · Allowed with conditions
Large AI-assisted changes are not banned, but the author must fully understand the submitted code; PRs failing quality standards can be closed.
- Take full responsibility: Certify that you fully understand the code being submitted
2 quotes
We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted.
Clone your fork and cd into the repo directory We reserve the right to close any pull request at our discretion, without further justification. This includes, but is not limited to, cases where:
Clone your fork and cd into the repo directory Mechanical changes · Allowed with conditions
AI-driven repetitive edits are welcome, provided the contributor fully understands the resulting code.
- Take full responsibility: Certify that you fully understand the code being submitted
Quote
We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted.
Clone your fork and cd into the repo directory Tests · Allowed with conditions
AI-written tests are welcome; the contributor is expected to fully understand and run them.
- Take full responsibility: Certify that you fully understand the code being submitted
Quote
We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted.
Clone your fork and cd into the repo directory Build and CI · Allowed with conditions
AI-written build, CI or packaging changes are welcome if the contributor fully understands them.
- Take full responsibility: Certify that you fully understand the code being submitted
Quote
We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted.
Clone your fork and cd into the repo directory Documentation · Allowed with conditions
AI-written documentation changes are welcome as part of a contribution the author understands and can stand behind.
- Take full responsibility: Certify that you fully understand the code being submitted
Quote
We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted.
Clone your fork and cd into the repo directory Other code contributions rule · Not allowed
Maintainers reserve the right to close any pull request at their own discretion, without further justification.
Quote
We reserve the right to close any pull request at our discretion, without further justification. This includes, but is not limited to, cases where:
Clone your fork and cd into the repo directory Other code contributions rule · Not allowed
Pull requests from authors who appear to be mass-submitting across multiple repositories (spam) may be closed.
Quote
the author appears to be mass-submitting pull requests across multiple repositories (spam),
Clone your fork and cd into the repo directory
Not covered by the policy (6)
Translating the software, Images and media, Research and learning, Checking own work, AI as author, Autonomous agents.
Issues & bug reports
The policy does not cover this area.
AI-written text
Pull request descriptions · Allowed
AI-generated pull request descriptions are acceptable, but a PR may be closed if its description is AI generated and incoherent or nonsensical.
Quote
the pull request description is AI generated *and* incoherent or nonsensical.
Clone your fork and cd into the repo directory
Not covered by the policy (10)
Commit messages, Comments, Answering reviewers, Reviewing others' work, Forum and list posts, Translating own text, Proofreading, Quoting AI output, Summarizing discussions, Bots posting.
General
Mass submission or other behaviour described in the AI policy can result in a permanent ban from the Pydantic organization.
“Such behavior can also result in a permanent ban from the organization.” (Clone your fork and cd into the repo directory)
Sources
- Clone your fork and cd into the repo directorygithub.com/pydantic/pydantic/blob/main/docs/contributing.mdSnapshot 9 Nov 2026