Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for listo (0.18 sec)

  1. docs/pt/docs/tutorial/body-nested-models.md

    ## Campos do tipo Lista
    
    Você pode definir um atributo como um subtipo. Por exemplo, uma `list` do Python:
    
    ```Python hl_lines="14"
    {!../../../docs_src/body_nested_models/tutorial001.py!}
    ```
    
    Isso fará com que tags seja uma lista de itens mesmo sem declarar o tipo dos elementos desta lista.
    
    ## Campos do tipo Lista com um parâmetro de tipo
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/body-nested-models.md

    ```Python
    my_list: list[str]
    ```
    
    Und in Python-Versionen vor 3.9:
    
    ```Python
    from typing import List
    
    my_list: List[str]
    ```
    
    Das ist alles Standard-Python-Syntax für Typdeklarationen.
    
    Verwenden Sie dieselbe Standardsyntax für Modellattribute mit inneren Typen.
    
    In unserem Beispiel können wir also bewirken, dass `tags` spezifisch eine „Liste von Strings“ ist:
    
    === "Python 3.10+"
    
        ```Python hl_lines="12"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-nested-models.md

        ```
    
    This will make `tags` be a list, although it doesn't declare the type of the elements of the list.
    
    ## List fields with type parameter
    
    But Python has a specific way to declare lists with internal types, or "type parameters":
    
    ### Import typing's `List`
    
    In Python 3.9 and above you can use the standard `list` to declare these type annotations as we'll see below. 💡
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/body-nested-models.md

    ```
    
    ### 타입 매개변수로 `List` 선언
    
    `list`, `dict`, `tuple`과 같은 타입 매개변수(내부 타입)를 갖는 타입을 선언하려면:
    
    * `typing` 모듈에서 임포트
    * 대괄호를 사용하여 "타입 매개변수"로 내부 타입 전달: `[` 및 `]`
    
    ```Python
    from typing import List
    
    my_list: List[str]
    ```
    
    이 모든 것은 타입 선언을 위한 표준 파이썬 문법입니다.
    
    내부 타입을 갖는 모델 어트리뷰트에 대해 동일한 표준 문법을 사용하세요.
    
    마찬가지로 예제에서 `tags`를 구체적으로 "문자열의 리스트"로 만들 수 있습니다:
    
    ```Python hl_lines="14"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.6K bytes
    - Viewed (0)
Back to top