Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Konversion (0.14 sec)

  1. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

            Prefer to use the `Annotated` version if possible.
    
        ```Python
        commons: CommonQueryParams ...
        ```
    
    ...doesn't have any special meaning for **FastAPI**. FastAPI won't use it for data conversion, validation, etc. (as it is using the `Depends(CommonQueryParams)` for that).
    
    You could actually write just:
    
    === "Python 3.8+"
    
        ```Python
        commons: Annotated[Any, Depends(CommonQueryParams)]
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.4K bytes
    - Viewed (0)
Back to top