Roberto Bertó
7b8992ab4b
fix(compat): route v1/v2 ModelField correctly; expose schema error; harden v2 fallback
- add shared.is_v1_field_info() helper and use it in create_model_field
- build v1_kwargs / v2_kwargs separately; avoid constructing v2 FieldInfo in v1 path
- v2.ModelField: fallback to Any when field_info.annotation is absent (v1 FieldInfo)
- expose PydanticSchemaGenerationError in v1 bridge (map to ConfigError on v1)
- keep stubs minimal (.pyi) and py38-compatible (typing.*)
9 months ago
pre-commit-ci[bot]
dbd8bf0054
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
9 months ago
Roberto Bertó
803def91e4
fix: handle v1.FieldInfo.annotation compatibility in v2.ModelField
- Add defensive check for field_info.annotation attribute
- v1.FieldInfo does not have .annotation (only v2 does)
- Use getattr() with fallback to avoid AttributeError
- Add try/catch around TypeAdapter creation for robustness
- Resolves AttributeError when bridging v1->v2 FieldInfo
9 months ago
pre-commit-ci[bot]
b91a88a983
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
9 months ago
Roberto Bertó
fb00f2679d
fix: complete Python 3.8 compatibility fixes
- Fix tuple[Type[Any], ...] to Tuple[Type[Any], ...] in shared.py
- Add missing _is_model_field function to v2.py
- All tests now pass on Python 3.8 without TypeError
- Import-time compatibility fully restored for Python 3.8
9 months ago
Roberto Bertó
db9cc165b6
fix: replace built-in generics with typing.* for Python 3.8 compatibility
- Replace dict[str, Any] with Dict[str, Any] in runtime aliases
- Fix JsonSchemaValue aliases in _compat/__init__.py and _compat/v1.py
- Add Dict import to _compat/__init__.py
- Resolves TypeError: 'type' object is not subscriptable in Python 3.8
- Maintains compatibility with Python 3.8+ while keeping modern syntax in main code
9 months ago
Roberto Bertó
24835120ba
fix: use Python 3.8 compatible type annotations in stubs
- Replace modern type syntax (dict[str, Any]) with legacy syntax (Dict[str, Any])
- Add UP006 exceptions for .pyi files to allow legacy syntax for Python 3.8 compatibility
- Fixes TypeError: 'type' object is not subscriptable in Python 3.8 tests
- Maintains compatibility with Python 3.8+ while keeping modern syntax in main code
9 months ago
pre-commit-ci[bot]
8d91a59494
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
9 months ago
Roberto Bertó
2f99189cb5
feat: implement PR-clean Pydantic v1/v2 compatibility layer
- Add minimal type stubs (.pyi) for v1/v2 compatibility without runtime changes
- Move proxy imports to top-level for safe lazy loading (no PLC0415 needed)
- Remove broad type ignores and implement targeted fixes:
* Early returns for union-attr errors
* -> Any annotations for dynamic helpers
* cast() for v1/v2 bridging
* TYPE_CHECKING for type-only imports
- Fix Portuguese comments and ensure English-only codebase
- Add I001 exception in pyproject.toml for conditional imports
- Achieve 0 Ruff errors, 0 MyPy errors, all tests passing
- Maintain full Pydantic v1/v2 compatibility with lazy loading
9 months ago
github-actions[bot]
81f85831f5
📝 Update release notes
[skip ci]
10 months ago
Motov Yurii
7f810ca93b
🔧 Configure reminder for `waiting` label in `issue-manager` ( #14156 )
10 months ago
github-actions[bot]
414f961f1f
📝 Update release notes
[skip ci]
10 months ago
Marcelo Trylesinski
dde7bd1ceb
📝 Replace `starlette.io` by `starlette.dev` and `uvicorn.org` by `uvicorn.dev` ( #14176 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
10 months ago
Sebastián Ramírez
2e721e1b02
🔖 Release version 0.119.0
10 months ago
Sebastián Ramírez
fc7a0686af
📝 Update release notes
10 months ago
github-actions[bot]
3a3879b2c3
📝 Update release notes
[skip ci]
10 months ago
Sebastián Ramírez
d34918abf0
✨ Add support for `from pydantic.v1 import BaseModel`, mixed Pydantic v1 and v2 models in the same app ( #14168 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
10 months ago
Sebastián Ramírez
352dbefc63
🔖 Release version 0.118.3
10 months ago
github-actions[bot]
96e7d6eaa4
📝 Update release notes
[skip ci]
10 months ago
Sofie Van Landeghem
3611c3fc5b
⬆️ Add support for Python 3.14 ( #14165 )
10 months ago
Sebastián Ramírez
942fce394b
🔖 Release version 0.118.2
10 months ago
github-actions[bot]
13b067c9b6
📝 Update release notes
[skip ci]
10 months ago
François Voron
185cecd891
🐛 Fix tagged discriminated union not recognized as body field ( #12942 )
Co-authored-by: Motov Yurii <[email protected] >
Co-authored-by: Patrick Arminio <[email protected] >
Co-authored-by: Sebastián Ramírez <[email protected] >
10 months ago
github-actions[bot]
27c0f7e75f
📝 Update release notes
[skip ci]
10 months ago
dependabot[bot]
05dbfebce5
⬆ Bump astral-sh/setup-uv from 6 to 7 ( #14167 )
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv ) from 6 to 7.
- [Release notes](https://github.com/astral-sh/setup-uv/releases )
- [Commits](https://github.com/astral-sh/setup-uv/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
Sebastián Ramírez
01be148429
🔖 Release version 0.118.1
10 months ago
github-actions[bot]
fca8564ea0
📝 Update release notes
[skip ci]
10 months ago
Sebastián Ramírez
485bfedf5d
🔨 Move local coverage logic to its own script ( #14166 )
10 months ago
github-actions[bot]
32b93b53fc
📝 Update release notes
[skip ci]
10 months ago
Colin Watson
c970d8a735
👽 ️ Ensure compatibility with Pydantic 2.12.0 ( #14036 )
Co-authored-by: Sofie Van Landeghem <[email protected] >
Co-authored-by: Victorien <[email protected] >
Co-authored-by: svlandeg <[email protected] >
Co-authored-by: Motov Yurii <[email protected] >
Co-authored-by: Patrick Arminio <[email protected] >
10 months ago
github-actions[bot]
22b38099ce
📝 Update release notes
[skip ci]
10 months ago
pre-commit-ci[bot]
bc5e877c9c
⬆ [pre-commit.ci] pre-commit autoupdate ( #14161 )
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.2 → v0.13.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.2...v0.13.3 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
10 months ago
github-actions[bot]
1cd8717818
📝 Update release notes
[skip ci]
10 months ago
Simon Gurcke
6df0358b80
📝 Add External Link: Getting started with logging in FastAPI ( #14152 )
Add logging article to External links
10 months ago
github-actions[bot]
56c0632f86
📝 Update release notes
[skip ci]
10 months ago
Sebastián Ramírez
61596ebe5b
🔨 Add Russian translations LLM prompt ( #13936 )
* 🔨 Add Russian translations LLM prompt
* 🔨 Tweak prompt with input from Yurii
* 📝 Update LLM prompt
* Update llm-prompt.md
* Update llm-prompt.md
* Update llm-prompt.md
* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
* Update llm-prompt.md
* Update llm-prompt.md
* Update llm-prompt.md
* Update ru `llm-prompt.md`
---------
Co-authored-by: Motov Yurii <[email protected] >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
10 months ago
github-actions[bot]
e820049caa
📝 Update release notes
[skip ci]
10 months ago
dependabot[bot]
3e97c96b60
⬆ Bump griffe-typingdoc from 0.2.8 to 0.2.9 ( #14144 )
Bumps [griffe-typingdoc](https://github.com/mkdocstrings/griffe-typingdoc ) from 0.2.8 to 0.2.9.
- [Release notes](https://github.com/mkdocstrings/griffe-typingdoc/releases )
- [Changelog](https://github.com/mkdocstrings/griffe-typingdoc/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mkdocstrings/griffe-typingdoc/compare/0.2.8...0.2.9 )
---
updated-dependencies:
- dependency-name: griffe-typingdoc
dependency-version: 0.2.9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
github-actions[bot]
beef83d871
📝 Update release notes
[skip ci]
10 months ago
dependabot[bot]
d421feadf2
⬆ Bump mkdocs-macros-plugin from 1.3.9 to 1.4.0 ( #14145 )
Bumps [mkdocs-macros-plugin](https://github.com/fralau/mkdocs_macros_plugin ) from 1.3.9 to 1.4.0.
- [Release notes](https://github.com/fralau/mkdocs_macros_plugin/releases )
- [Changelog](https://github.com/fralau/mkdocs-macros-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fralau/mkdocs_macros_plugin/compare/v1.3.9...v1.4.0 )
---
updated-dependencies:
- dependency-name: mkdocs-macros-plugin
dependency-version: 1.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
github-actions[bot]
407a6a4a7c
📝 Update release notes
[skip ci]
10 months ago
dependabot[bot]
ece783d217
⬆ Bump markdown-include-variants from 0.0.4 to 0.0.5 ( #14146 )
Bumps [markdown-include-variants](https://github.com/tiangolo/markdown-include-variants ) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/tiangolo/markdown-include-variants/releases )
- [Changelog](https://github.com/tiangolo/markdown-include-variants/blob/main/release-notes.md )
- [Commits](https://github.com/tiangolo/markdown-include-variants/compare/0.0.4...0.0.5 )
---
updated-dependencies:
- dependency-name: markdown-include-variants
dependency-version: 0.0.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
github-actions[bot]
45bfb89ea2
📝 Update release notes
[skip ci]
10 months ago
github-actions[bot]
6046849249
📝 Update release notes
[skip ci]
10 months ago
pre-commit-ci[bot]
597c2f42c6
⬆ [pre-commit.ci] pre-commit autoupdate ( #14126 )
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.1 → v0.13.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.1...v0.13.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
10 months ago
Sebastián Ramírez
975e7190e4
👥 Update FastAPI GitHub topic repositories ( #14150 )
Co-authored-by: github-actions <[email protected] >
10 months ago
github-actions[bot]
65b9bc24ef
📝 Update release notes
[skip ci]
10 months ago
github-actions[bot]
46b7bfc478
📝 Update release notes
[skip ci]
10 months ago
Sebastián Ramírez
28f910a10b
👥 Update FastAPI People - Sponsors ( #14139 )
Co-authored-by: github-actions <[email protected] >
10 months ago
Sebastián Ramírez
9d920d616f
👥 Update FastAPI People - Contributors and Translators ( #14138 )
Co-authored-by: github-actions <[email protected] >
10 months ago