Jani Mustonen
d8874abae6
Define strict return value typing for Depends and Security
Depends can be used with a direct form, which although not recommended, is
still supported. The following code is problematic wrt. type checking.
def dependency() -> str:
return "dependency"
@router.get("/")
def endpoint(value: int = Depends(dependency)):
pass
Currently, `Depends(dependency)` returns Any, which then happily gets assigned
to the int. This patch changes it to return a type matching what the dependency
returns, making the above code fail type checking with mypy as it should.
1 year ago
github-actions
eef1b7d515
📝 Update release notes
1 year ago
Sebastián Ramírez
c0ad1ebabd
🔧 Update sponsors, remove Jina, remove Powens, move TestDriven.io ( #11213 )
1 year ago
Sebastián Ramírez
c4c70fd792
📝 Update release notes
1 year ago
github-actions
7ef0b08897
📝 Update release notes
1 year ago
Vusal Abdullayev
937378ff05
🌐 Add Azerbaijani translation for `docs/az/learn/index.md` ( #11192 )
1 year ago
Sebastián Ramírez
e40747f10a
🔖 Release version 0.110.0
1 year ago
Sebastián Ramírez
32b56a8d08
📝 Update release notes
1 year ago
github-actions
b6b0f2a7e6
📝 Update release notes
1 year ago
Sebastián Ramírez
bf771bd781
🐛 Fix unhandled growing memory for internal server errors, refactor dependencies with `yield` and `except` to require raising again as in regular Python ( #11191 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 year ago
github-actions
6336604906
📝 Update release notes
1 year ago
github-actions
cb93874014
📝 Update release notes
1 year ago
Nils Lindemann
9210e6a330
🌐 Add German translation for `docs/de/docs/reference/background.md` ( #10820 )
1 year ago
Nils Lindemann
dec45c534f
🌐 Add German translation for `docs/de/docs/reference/templating.md` ( #10842 )
1 year ago
github-actions
5da35ff980
📝 Update release notes
1 year ago
Nils Lindemann
626b066e56
🌐 Add German translation for `docs/de/docs/external-links.md` ( #10852 )
1 year ago
github-actions
a6bc32a61a
📝 Update release notes
1 year ago
Hasan Sezer Taşan
e52bf9628f
🌐 Update Turkish translation for `docs/tr/docs/tutorial/query-params.md` ( #11162 )
1 year ago
github-actions
e76977bb35
📝 Update release notes
1 year ago
Nils Lindemann
073a05ebdd
🌐 Add German translation for `docs/de/docs/reference/encoders.md` ( #10840 )
1 year ago
github-actions
d0b143916c
📝 Update release notes
1 year ago
github-actions
ce1a358cbf
📝 Update release notes
1 year ago
Nils Lindemann
646e7eb3c7
🌐 Add German translation for `docs/de/docs/reference/responses.md` ( #10825 )
1 year ago
Nils Lindemann
6062ec86f3
🌐 Add German translation for `docs/de/docs/reference/request.md` ( #10821 )
1 year ago
github-actions
3808d618fd
📝 Update release notes
1 year ago
github-actions
f1ff930e68
📝 Update release notes
1 year ago
Emirhan Soytaş
7ca6f1cd1a
🌐 Add Turkish translation for `docs/tr/docs/tutorial/query-params.md` ( #11078 )
1 year ago
Nils Lindemann
73ca60c273
🌐 Add German translation for `docs/de/docs/reference/fastapi.md` ( #10813 )
1 year ago
github-actions
122713b168
📝 Update release notes
1 year ago
Nils Lindemann
ec464f0938
🌐 Add German translation for `docs/de/docs/newsletter.md` ( #10853 )
1 year ago
github-actions
be87690255
📝 Update release notes
1 year ago
Max Su
33f6026c6c
🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/learn/index.md` ( #11142 )
1 year ago
github-actions
8ad6acfe6a
📝 Update release notes
1 year ago
김명기
b8941c31ea
🌐 Add Korean translation for `/docs/ko/docs/tutorial/dependencies/global-dependencies.md` ( #11123 )
1 year ago
github-actions
a315048357
📝 Update release notes
1 year ago
김명기
b1fa0f262e
🌐 Add Korean translation for `/docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md` ( #11124 )
1 year ago
github-actions
44c4cdd73b
📝 Update release notes
1 year ago
Kani Kim
c0df023557
✏️ Fix minor typos in `docs/ko/docs/` ( #11126 )
1 year ago
github-actions
9f4db6d6d3
📝 Update release notes
1 year ago
Kani Kim
383870a275
🌐 Add Korean translation for `/docs/ko/docs/tutorial/schema-extra-example.md` ( #11121 )
1 year ago
github-actions
76e14214bd
📝 Update release notes
1 year ago
github-actions
564d5591ad
📝 Update release notes
1 year ago
Kani Kim
a5edc3f85b
🌐 Add Korean translation for `/docs/ko/docs/tutorial/body-fields.md` ( #11112 )
1 year ago
github-actions
75e3aac8d3
📝 Update release notes
1 year ago
김명기
d048b485cd
🌐 Add Korean translation for `/docs/ko/docs/tutorial/cookie-params.md` ( #11118 )
1 year ago
Kani Kim
b7e1551286
🌐 Update Korean translation for `/docs/ko/docs/dependencies/index.md` ( #11114 )
1 year ago
github-actions
d2f69cf311
📝 Update release notes
1 year ago
Kani Kim
378623294e
🌐 Update Korean translation for `/docs/ko/docs/deployment/docker.md` ( #11113 )
1 year ago
github-actions
1f6a33ce72
📝 Update release notes
1 year ago
Hasan Sezer Taşan
0c13911af8
🌐 Update Turkish translation for `docs/tr/docs/tutorial/first-steps.md` ( #11094 )
1 year ago