Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for WHERE (0.19 sec)

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

        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python
        commons: CommonQueryParams = Depends(CommonQueryParams)
        ```
    
    **FastAPI** provides a shortcut for these cases, in where the dependency is *specifically* a class that **FastAPI** will "call" to create an instance of the class itself.
    
    For those specific cases, you can do the following:
    
    Instead of writing:
    
    === "Python 3.8+"
    
    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