Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Kass (0.13 sec)

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

        ```Python hl_lines="11"
        {!> ../../../docs_src/dependencies/tutorial001.py!}
        ```
    
    Aber dann haben wir ein `dict` im Parameter `commons` der *Pfadoperation-Funktion*.
    
    Und wir wissen, dass Editoren nicht viel Unterstützung (wie etwa Code-Vervollständigung) für `dict`s bieten können, weil sie ihre Schlüssel- und Werttypen nicht kennen.
    
    Das können wir besser machen ...
    
    ## Was macht eine Abhängigkeit aus
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:01:58 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    Then, in **FastAPI**, you could use a Python class as a dependency.
    
    What FastAPI actually checks is that it is a "callable" (function, class or anything else) and the parameters defined.
    
    If you pass a "callable" as a dependency in **FastAPI**, it will analyze the parameters for that "callable", and process them in the same way as the parameters for a *path operation function*. Including sub-dependencies.
    
    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