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.
2024-03-09 17:25:53 +02:00
github-actions
eef1b7d515
📝 Update release notes
2024-02-28 14:04:27 +00:00
Sebastián Ramírez
c0ad1ebabd
🔧 Update sponsors, remove Jina, remove Powens, move TestDriven.io ( #11213 )
2024-02-28 15:04:08 +01:00
Sebastián Ramírez
c4c70fd792
📝 Update release notes
2024-02-27 12:18:27 +01:00
github-actions
7ef0b08897
📝 Update release notes
2024-02-25 14:25:31 +00:00
Vusal Abdullayev
937378ff05
🌐 Add Azerbaijani translation for `docs/az/learn/index.md` ( #11192 )
2024-02-25 09:25:12 -05:00
Sebastián Ramírez
e40747f10a
🔖 Release version 0.110.0
2024-02-25 00:19:38 +01:00
Sebastián Ramírez
32b56a8d08
📝 Update release notes
2024-02-25 00:18:13 +01:00
github-actions
b6b0f2a7e6
📝 Update release notes
2024-02-24 23:06:56 +00:00
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>
2024-02-25 00:06:37 +01:00
github-actions
6336604906
📝 Update release notes
2024-02-21 22:27:53 +00:00
github-actions
cb93874014
📝 Update release notes
2024-02-21 22:27:17 +00:00
Nils Lindemann
9210e6a330
🌐 Add German translation for `docs/de/docs/reference/background.md` ( #10820 )
2024-02-21 17:26:48 -05:00
Nils Lindemann
dec45c534f
🌐 Add German translation for `docs/de/docs/reference/templating.md` ( #10842 )
2024-02-21 17:26:02 -05:00
github-actions
5da35ff980
📝 Update release notes
2024-02-21 22:23:21 +00:00
Nils Lindemann
626b066e56
🌐 Add German translation for `docs/de/docs/external-links.md` ( #10852 )
2024-02-21 17:23:00 -05:00
github-actions
a6bc32a61a
📝 Update release notes
2024-02-19 18:46:23 +00:00
Hasan Sezer Taşan
e52bf9628f
🌐 Update Turkish translation for `docs/tr/docs/tutorial/query-params.md` ( #11162 )
2024-02-19 13:46:02 -05:00
github-actions
e76977bb35
📝 Update release notes
2024-02-19 15:57:07 +00:00
Nils Lindemann
073a05ebdd
🌐 Add German translation for `docs/de/docs/reference/encoders.md` ( #10840 )
2024-02-19 10:54:52 -05:00
github-actions
d0b143916c
📝 Update release notes
2024-02-19 15:54:37 +00:00
github-actions
ce1a358cbf
📝 Update release notes
2024-02-19 15:53:44 +00:00
Nils Lindemann
646e7eb3c7
🌐 Add German translation for `docs/de/docs/reference/responses.md` ( #10825 )
2024-02-19 10:53:39 -05:00
Nils Lindemann
6062ec86f3
🌐 Add German translation for `docs/de/docs/reference/request.md` ( #10821 )
2024-02-19 10:53:18 -05:00
github-actions
3808d618fd
📝 Update release notes
2024-02-18 12:21:32 +00:00
github-actions
f1ff930e68
📝 Update release notes
2024-02-18 12:20:55 +00:00
Emirhan Soytaş
7ca6f1cd1a
🌐 Add Turkish translation for `docs/tr/docs/tutorial/query-params.md` ( #11078 )
2024-02-18 07:20:41 -05:00
Nils Lindemann
73ca60c273
🌐 Add German translation for `docs/de/docs/reference/fastapi.md` ( #10813 )
2024-02-18 07:19:32 -05:00
github-actions
122713b168
📝 Update release notes
2024-02-18 12:18:59 +00:00
Nils Lindemann
ec464f0938
🌐 Add German translation for `docs/de/docs/newsletter.md` ( #10853 )
2024-02-18 07:18:33 -05:00
github-actions
be87690255
📝 Update release notes
2024-02-16 12:06:46 +00:00
Max Su
33f6026c6c
🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/learn/index.md` ( #11142 )
2024-02-16 07:06:22 -05:00
github-actions
8ad6acfe6a
📝 Update release notes
2024-02-14 15:06:07 +00:00
김명기
b8941c31ea
🌐 Add Korean translation for `/docs/ko/docs/tutorial/dependencies/global-dependencies.md` ( #11123 )
2024-02-14 10:05:47 -05:00
github-actions
a315048357
📝 Update release notes
2024-02-11 13:52:06 +00:00
김명기
b1fa0f262e
🌐 Add Korean translation for `/docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md` ( #11124 )
2024-02-11 08:49:45 -05:00
github-actions
44c4cdd73b
📝 Update release notes
2024-02-11 13:48:54 +00:00
Kani Kim
c0df023557
✏️ Fix minor typos in `docs/ko/docs/` ( #11126 )
2024-02-11 08:48:31 -05:00
github-actions
9f4db6d6d3
📝 Update release notes
2024-02-09 12:36:07 +00:00
Kani Kim
383870a275
🌐 Add Korean translation for `/docs/ko/docs/tutorial/schema-extra-example.md` ( #11121 )
2024-02-09 07:35:46 -05:00
github-actions
76e14214bd
📝 Update release notes
2024-02-09 10:39:15 +00:00
github-actions
564d5591ad
📝 Update release notes
2024-02-09 10:36:41 +00:00
Kani Kim
a5edc3f85b
🌐 Add Korean translation for `/docs/ko/docs/tutorial/body-fields.md` ( #11112 )
2024-02-09 05:36:26 -05:00
github-actions
75e3aac8d3
📝 Update release notes
2024-02-09 10:35:36 +00:00
김명기
d048b485cd
🌐 Add Korean translation for `/docs/ko/docs/tutorial/cookie-params.md` ( #11118 )
2024-02-09 05:34:57 -05:00
Kani Kim
b7e1551286
🌐 Update Korean translation for `/docs/ko/docs/dependencies/index.md` ( #11114 )
2024-02-09 05:34:13 -05:00
github-actions
d2f69cf311
📝 Update release notes
2024-02-09 10:33:22 +00:00
Kani Kim
378623294e
🌐 Update Korean translation for `/docs/ko/docs/deployment/docker.md` ( #11113 )
2024-02-09 05:33:00 -05:00
github-actions
1f6a33ce72
📝 Update release notes
2024-02-08 13:11:17 +00:00
Hasan Sezer Taşan
0c13911af8
🌐 Update Turkish translation for `docs/tr/docs/tutorial/first-steps.md` ( #11094 )
2024-02-08 08:10:55 -05:00