Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Exchange (0.17 sec)

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

    That also applies to callables with no parameters at all. The same as it would be for *path operation functions* with no parameters.
    
    Then, we can change the dependency "dependable" `common_parameters` from above to the class `CommonQueryParams`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="11-15"
        {!> ../../../docs_src/dependencies/tutorial002_an_py310.py!}
    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