# Pydantic: AI-friendly

> 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.

- What it is: Data validation using Python type hints. (Library)
- Homepage: https://pydantic.dev/
- Repository: https://github.com/pydantic/pydantic
- Overall stance: AI-friendly (Friendly). AI-assisted contributions are welcome under the same rules as any other contribution.
- Last classified: 2026-11-09 (AI, medium confidence)
- Policy last changed: 2026-11-09
- Web page: https://areweaifriendly.com/projects/pydantic/

## Policy by area

- **Code contributions**: AI-friendly (Contributor takes full responsibility)
- **Issues & bug reports**: No AI policy
- **AI-written text**: 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. Conditions: Take full responsibility: Certify that you fully understand the code being submitted.
  > "We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted." (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)
- **Small fixes**: Allowed with conditions. Small AI-assisted fixes are welcome as long as the contributor fully understands the submitted code. Conditions: Take full responsibility: Certify that you fully understand the code being submitted.
  > "We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted." (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)
- **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. Conditions: Take full responsibility: Certify that you fully understand the code being submitted.
  > "We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted." (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)
  > "We reserve the right to close any pull request at our discretion, without further justification. This includes, but is not limited to, cases where:" (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)
- **Mechanical changes**: Allowed with conditions. AI-driven repetitive edits are welcome, provided the contributor fully understands the resulting code. Conditions: Take full responsibility: Certify that you fully understand the code being submitted.
  > "We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted." (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)
- **Tests**: Allowed with conditions. AI-written tests are welcome; the contributor is expected to fully understand and run them. Conditions: Take full responsibility: Certify that you fully understand the code being submitted.
  > "We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted." (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)
- **Build and CI**: Allowed with conditions. AI-written build, CI or packaging changes are welcome if the contributor fully understands them. Conditions: Take full responsibility: Certify that you fully understand the code being submitted.
  > "We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted." (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)
- **Documentation**: Allowed with conditions. AI-written documentation changes are welcome as part of a contribution the author understands and can stand behind. Conditions: Take full responsibility: Certify that you fully understand the code being submitted.
  > "We welcome the use of AI when contributing to Pydantic. However, users should certify that they fully understand the code being submitted." (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)
- **Other**: Not allowed. Maintainers reserve the right to close any pull request at their own discretion, without further justification.
  > "We reserve the right to close any pull request at our discretion, without further justification. This includes, but is not limited to, cases where:" (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)
- **Other**: Not allowed. Pull requests from authors who appear to be mass-submitting across multiple repositories (spam) may be closed.
  > "the author appears to be mass-submitting pull requests across multiple repositories (spam)," (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)

### Issues & bug reports

Not covered by the policy.

### 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.
  > "the pull request description is AI generated *and* incoherent or nonsensical." (https://github.com/pydantic/pydantic/blob/main/docs/contributing.md)

### General

- Not allowed: Mass submission or other behaviour described in the AI policy can result in a permanent ban from the Pydantic organization.

## Sources

- [Clone your fork and cd into the repo directory](https://github.com/pydantic/pydantic/blob/main/docs/contributing.md), fetched 2026-11-09
