105 Commits (32b8bd98ee48cb69930ad39b963095ceff9aba72)

Author SHA1 Message Date
merlinz01 807e271669 reformat utils.py 9 months ago
merlinz01 84b6d8ed25 fix lint error 9 months ago
merlinz01 155905194b fix Python version check 9 months ago
pre-commit-ci[bot] 69d3529a4a 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 9 months ago
merlinz01 d57cd4f379 make compatible with Python <3.10 and Pydantic v1 9 months ago
merlinz01 430e7c8efe fix lint errors 9 months ago
merlinz01 63a1ff51c1 fix linting errors 9 months ago
pre-commit-ci[bot] e3f6632fa0 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 9 months ago
merlinz01 ebc60c12a3 Pass None instead of the default value to parameters that accept it when null is given 9 months ago
merlinz01 5658b92b4c Pass None instead of the default value to parameters that accept it when null is given 10 months ago
Sebastián Ramírez 7bad7c0975
Add support for Pydantic models in `Form` parameters (#12129) 10 months ago
Sebastián Ramírez 8e6cf9ee9c
️ Temporarily revert " Add support for Pydantic models in `Form` parameters" to make a checkpoint release (#12128) 10 months ago
Sebastián Ramírez 0f3e65b007
Add support for Pydantic models in `Form` parameters (#12127) 10 months ago
Sebastián Ramírez aa21814a89
♻️ Refactor deciding if `embed` body fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models in `Form`, `Query` and others (#12117) 10 months ago
Sebastián Ramírez 23bda0ffeb
♻️ Refactor internal `check_file_field()`, rename to `ensure_multipart_is_installed()` to clarify its purpose (#12106) 10 months ago
Sebastián Ramírez d08b95ea57
♻️ Rename internal `create_response_field()` to `create_model_field()` as it's used for more than response models (#12103) 10 months ago
Sebastián Ramírez 5b7fa3900e
♻️ Refactor and simplify internal data from `solve_dependencies()` using dataclasses (#12100) 10 months ago
Sebastián Ramírez 08547e1d57
♻️ Refactor and simplify internal `analyze_param()` to structure data with dataclasses instead of tuple (#12099) 10 months ago
Sebastián Ramírez 581aacc4a9
♻️ Refactor and simplify dependencies data structures with dataclasses (#12098) 10 months ago
Sebastián Ramírez 3a3ad5d66d
⬆️ Upgrade version of Ruff and reformat (#12032) 10 months ago
Nadav Zingerman eec612ca8d
🐛 Fix parameterless `Depends()` with generics (#9479) 1 year ago
Charlie Marsh 5ccc869fee
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075) 1 year ago
Sebastián Ramírez a4aa79e0b4
Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831) 2 years ago
Sebastián Ramírez 6f5aa81c07
Add support for multiple Annotated annotations, e.g. `Annotated[str, Field(), Query()]` (#10773) 2 years ago
Sebastián Ramírez 05ca41cfd1
Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392) 2 years ago
Sebastián Ramírez 0976185af9
Add support for Pydantic v2 (#9816) 2 years ago
Sharon Yogev fdf66c825e
🐛 Fix using `Annotated` in routers or path operations decorated multiple times (#9315) 2 years ago
Nadav Zingerman 375513f114
Add support for PEP-593 `Annotated` for specifying dependencies and parameters (#4871) 2 years ago
pre-commit-ci[bot] f04b61bd16
⬆ [pre-commit.ci] pre-commit autoupdate (#5709) 2 years ago
Yurii Karabas d0573f5713
Add support for function return type annotations to declare the `response_model` (#1436) 2 years ago
Sebastián Ramírez 7c5626bef7
⬆️ Upgrade Ruff (#5698) 3 years ago
Sebastián Ramírez fa74093440
Use Ruff for linting (#5630) 3 years ago
Sebastián Ramírez 74ce2204ae
⬆️ Upgrade mypy and tweak internal type annotations (#5398) 3 years ago
Ofek Lev 4267bd1f4f
🔧 Update package metadata, drop support for Python 3.6, move build internals from Flit to Hatch (#5240) 3 years ago
Muzaffer Cikay c8124496fc
♻ Simplify conditional assignment in `fastapi/dependencies/utils.py` (#4597) 3 years ago
juntatalor ca2fae0588
Add support for `FrozenSet` in parameters (e.g. query) (#2938) 3 years ago
laggardkernel b993b4af28
🐛 Fix cached dependencies when using a dependency in `Security()` and other places (e.g. `Depends()`) with different OAuth2 scopes (#2945) 3 years ago
Sebastián Ramírez 9262fa8362
Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906) 3 years ago
Marcelo Trylesinski 33d61430cf
⬆ Upgrade Starlette from 0.17.1 to 0.18.0 (#4483) 3 years ago
Sebastián Ramírez 1bf55200a9
Add support for declaring `UploadFile` parameters without explicit `File()` (#4469) 3 years ago
Thomas Grainger 11d0a08acd
Add support for Trio via AnyIO (#3372) 4 years ago
Sebastián Ramírez 684c0077cc
Add support for `dataclasses` in request bodies and `response_model` (#3577) 4 years ago
Sebastián Ramírez 4d208b2b90
🎨 Add newly required type annotations for mypy (#2882) 4 years ago
Sebastián Ramírez fdb6c9ccc5
Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 5 years ago
Marcelo Trylesinski b299792ebf
✏️ Fix typo on dependencies utils and cleanup unused variable (#1912) 5 years ago
Sebastián Ramírez e1758d107e
⬆ Require Pydantic > 1.0 (#1862) 5 years ago
Nik b9a0179a03
Add support for injecting HTTPConnection (#1827) 5 years ago
Sebastián Ramírez 38d8bab770
Raise early when using form data without installing python-multipart (#1851) 5 years ago
Yurii Karabas 55b9faeb48
♻ Simplify code syntax in several places (#1753) 5 years ago
Nima Mashhadi M. Reza 3223de5598
🎨 Add typing.Optional to variables that accept None as value (#1731) 5 years ago