Md Mushfiqur Rahim
375b767868
Merge branch 'master' into fix/annotated-forward-ref-lenient
3 weeks ago
github-actions[bot]
6f2dbb96ac
📝 Update release notes
[skip ci]
3 weeks ago
Sebastián Ramírez
b6abc93bff
🔧 Remove Ruff ignored rule for tabs ( #15533 )
3 weeks ago
github-actions[bot]
b31ffc1efd
📝 Update release notes
[skip ci]
3 weeks ago
Sebastián Ramírez
b71da659cf
🔧 Update sponsors badge ( #15532 )
3 weeks ago
github-actions[bot]
b70238d9e3
📝 Update release notes
[skip ci]
3 weeks ago
Sebastián Ramírez
2c26191e30
🔧 Add sponsor: TalorData ( #15531 )
3 weeks ago
Codebuff Contributor
6d404bca9a
Fix mypy/ty by using _evaluate, fix dict type args, ignore deprecation warning
- Keep ForwardRef._evaluate (recognized by mypy/ty typeshed)
- Fix class _LenientNamespace(dict) -> _LenientNamespace(dict[str, Any])
- Use frozenset() instead of set() for recursive_guard
- Ignore ForwardRef._evaluate deprecation warning in pytest config
3 weeks ago
Codebuff Contributor
4c998f64db
Fix pre-commit and Python 3.14 test CI failures
- Remove duplicate _resolve_forward_ref_lenient function
- Use ForwardRef.evaluate() instead of deprecated _evaluate()
- Use frozenset() instead of set() for recursive_guard parameter
- Add noqa for E402 in test file (deliberate late import)
3 weeks ago
pre-commit-ci-lite[bot]
b023d91e13
🎨 Auto format
3 weeks ago
Codebuff Contributor
477ebee8d2
ruff format fix
3 weeks ago
Codebuff Contributor
e20b2497f3
Fix: type_params needed on Python 3.13+ too
3 weeks ago
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]
3 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>
3 weeks ago
github-actions[bot]
7cb195394c
📝 Update release notes
[skip ci]
3 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>
3 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