Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for aliases (0.21 sec)

  1. docs/ru/docs/tutorial/dependencies/index.md

    === "Python 3.8+"
    
        ```Python hl_lines="15  19  24"
        {!> ../../../docs_src/dependencies/tutorial001_02_an.py!}
        ```
    
    !!! tip "Подсказка"
        Это стандартный синтаксис python и называется "type alias", это не особенность **FastAPI**.
    
        Но потому что **FastAPI** базируется на стандартах Python,  включая `Annotated`, вы можете использовать этот трюк в вашем коде. 😎
    
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  2. docs/es/docs/index.md

    ### Resumen
    
    En resumen, declaras los tipos de parámetros, body, etc. **una vez** como parámetros de la función.
    
    Lo haces con tipos modernos estándar de Python.
    
    No tienes que aprender una sintaxis nueva, los métodos o clases de una library específica, etc.
    
    Solo **Python** estándar.
    
    Por ejemplo, para un `int`:
    
    ```Python
    item_id: int
    ```
    
    o para un modelo más complejo de `Item`:
    
    ```Python
    item: Item
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/dependencies/index.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="15  19  24"
        {!> ../../../docs_src/dependencies/tutorial001_02_an.py!}
        ```
    
    !!! tip
        This is just standard Python, it's called a "type alias", it's actually not specific to **FastAPI**.
    
        But because **FastAPI** is based on the Python standards, including `Annotated`, you can use this trick in your code. 😎
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/dependencies/index.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="15  19  24"
        {!> ../../../docs_src/dependencies/tutorial001_02_an.py!}
        ```
    
    !!! tip "팁"
        이는 그저 표준 파이썬이고 "type alias"라고 부르며 사실 **FastAPI**에 국한되는 것은 아닙니다.
    
        하지만, `Annotated`를 포함하여, **FastAPI**가 파이썬 표준을 기반으로 하고 있기에, 이를 여러분의 코드 트릭으로 사용할 수 있습니다. 😎
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top