Codebuff Contributor
afd043b03e
Fix ForwardRef._evaluate() missing type_params for Python 3.14+
Python 3.14 added a new 'type_params' parameter to ForwardRef._evaluate()
(PEP 695). Failing to pass it triggers a DeprecationWarning, which is
treated as error by FastAPI's test suite (-W error). Pass type_params=()
on Python 3.14+ to silence the warning.
3 weeks ago
Codebuff Contributor
63613e0b83
Fix ForwardRef._evaluate() keyword-only argument for Python 3.13+
In Python 3.13+, ForwardRef._evaluate() requires 'recursive_guard'
as a keyword-only argument. Pass it as keyword to support both
older and newer Python versions.
3 weeks ago
Codebuff Contributor
becafff6b5
Fix Annotated forward ref resolution with from __future__ import annotations
When using rom __future__ import annotations, annotations are stored as
strings. If Annotated[SomeClass, Depends()] references a class defined
after the route decorator, the forward reference could not be resolved at
decoration time.
FastAPI's evaluate_forwardref() does not raise on unresolvable references
- it returns the raw ForwardRef object. The existing code only handled the
string-to-ForwardRef conversion but did not check whether resolution
actually succeeded, allowing an unresolvable ForwardRef to leak into the
type annotation. This caused Pydantic to fail with
'class-not-fully-defined' errors and the Depends metadata to be lost.
The fix adds a fallback: when evaluate_forwardref() returns a ForwardRef
(rather than the resolved type) and the annotation string is Annotated-
shaped, a lenient resolution evaluates the annotation with a namespace
that maps undefined names to Any. This preserves the Annotated structure
so FastAPI can extract the Depends metadata.
3 weeks ago
github-actions[bot]
e89a37e50d
📝 Update release notes
[skip ci]
4 weeks ago
dependabot[bot]
5d5666bec5
⬆ Bump ty from 0.0.21 to 0.0.34 ( #15443 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: svlandeg <[email protected] >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4 weeks ago
github-actions[bot]
7cb195394c
📝 Update release notes
[skip ci]
4 weeks ago
dependabot[bot]
3ec959abc7
⬆ Bump pydantic from 2.13.2 to 2.13.3 ( #15444 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 weeks ago
github-actions[bot]
622b6356b5
📝 Update release notes
[skip ci]
1 month ago
Sebastián Ramírez
fb7429378d
👷 Add pre-commit to check typos ( #15482 )
1 month ago
github-actions[bot]
3efd86c1fd
📝 Update release notes
[skip ci]
1 month ago
Carlos Rodríguez Romo
f8cbeabf81
🌐 Fix typos in Spanish LLM-prompt ( #15472 )
Co-authored-by: Motov Yurii <[email protected] >
1 month ago
github-actions[bot]
8c660a6819
📝 Update release notes
[skip ci]
1 month ago
Isaac
810fd2a888
✏️ Fix Azkaban spelling typo in `virtual-environments.md` ( #15463 )
1 month ago
github-actions[bot]
ecf73d61c3
📝 Update release notes
[skip ci]
1 month ago
Sebastián Ramírez
9ccaab154a
👥 Update FastAPI GitHub topic repositories ( #15470 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
f72afb6f6e
📝 Update release notes
[skip ci]
1 month ago
Sebastián Ramírez
8da79ec2fe
👥 Update FastAPI People - Experts ( #15471 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
205bd85a46
📝 Update release notes
[skip ci]
1 month ago
Sebastián Ramírez
bc8b1d101c
👥 Update FastAPI People - Contributors and Translators ( #15467 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
e0a2c75b1a
📝 Update release notes
[skip ci]
1 month ago
Motov Yurii
33ed5aecdf
👷 Fix missing credentials issue in `translate` workflow ( #15468 )
1 month ago
github-actions[bot]
d8a2c1edaa
📝 Update release notes
[skip ci]
1 month ago
Alejandra
b363a1d002
💄 Improve layout and styling ( #15462 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
a3ceb9ca74
📝 Update release notes
[skip ci]
1 month ago
Alejandra
aff0b7cd43
💄 Refactor opinions section with interactive tabs and new logos ( #15458 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
6b20159c59
📝 Update release notes
[skip ci]
1 month ago
Alejandra
a217d2ff2a
📝 Add FastAPI Conf '26 announcement to docs ( #15457 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
4f64b8f651
📝 Update release notes
[skip ci]
1 month ago
dependabot[bot]
1f7c8c1ad3
⬆ Bump sqlmodel from 0.0.32 to 0.0.38 ( #15437 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <[email protected] >
1 month ago
github-actions[bot]
0e78824634
📝 Update release notes
[skip ci]
1 month ago
dependabot[bot]
4bad6d2597
⬆ Bump CodSpeedHQ/action from 4.12.1 to 4.14.0 ( #15436 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
44ddc3e7c8
📝 Update release notes
[skip ci]
1 month ago
dependabot[bot]
edc4c8ba33
⬆ Bump pydantic from 2.12.5 to 2.13.2 ( #15439 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
b44585589a
📝 Update release notes
[skip ci]
1 month ago
dependabot[bot]
f43cc1c0ef
⬆ Bump pydantic-ai from 1.63.0 to 1.83.0 ( #15417 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
5c89b88c9f
📝 Update release notes
[skip ci]
1 month ago
dependabot[bot]
4216f99515
⬆ Bump prek from 0.3.2 to 0.3.9 ( #15418 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
33aa27c7b7
📝 Update release notes
[skip ci]
1 month ago
dependabot[bot]
086048e395
⬆ Bump fastar from 0.9.0 to 0.11.0 ( #15419 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
91dd310da9
📝 Update release notes
[skip ci]
1 month ago
dependabot[bot]
3747204677
⬆ Bump astral-sh/setup-uv from 7.6.0 to 8.1.0 ( #15415 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
Sebastián Ramírez
e54e5a8980
🔖 Release version 0.136.1
1 month ago
github-actions[bot]
9a8a5fd999
📝 Update release notes
[skip ci]
1 month ago
Sofie Van Landeghem
7815a32f2e
⬆️ Update Pydantic v2 code to address deprecations ( #15101 )
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
ef1c927b05
📝 Update release notes
[skip ci]
1 month ago
Motov Yurii
38039e12a8
🔨 Tweak translation script ( #15174 )
1 month ago
github-actions[bot]
4fa826ce0a
📝 Update release notes
[skip ci]
1 month ago
dependabot[bot]
c39415673e
⬆ Bump mkdocs-material from 9.7.1 to 9.7.6 ( #15408 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
github-actions[bot]
ae230ad2f9
📝 Update release notes
[skip ci]
1 month ago
dependabot[bot]
d9eb39d1a1
⬆ Bump inline-snapshot from 0.31.1 to 0.32.6 ( #15409 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <[email protected] >
1 month ago