Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 116 for Tuple5 (0.05 seconds)

  1. docs/en/docs/python-types.md

    And still, the editor knows it is a `str`, and provides support for that.
    
    #### Tuple and Set { #tuple-and-set }
    
    You would do the same to declare `tuple`s and `set`s:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    This means:
    
    * The variable `items_t` is a `tuple` with 3 items, an `int`, another `int`, and a `str`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  2. tests/test_invalid_path_param.py

    
    def test_invalid_tuple():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/{id}")
            def read_items(id: tuple[Item, Item]):
                pass  # pragma: no cover
    
    
    def test_invalid_dict():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  3. fastapi/security/utils.py

    def get_authorization_scheme_param(
        authorization_header_value: str | None,
    ) -> tuple[str, str]:
        if not authorization_header_value:
            return "", ""
        scheme, _, param = authorization_header_value.partition(" ")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 261 bytes
    - Click Count (0)
  4. docs/ru/docs/python-types.md

    И всё же редактор кода знает, что это `str`, и даёт соответствующую поддержку.
    
    #### Tuple и Set { #tuple-and-set }
    
    Аналогично вы бы объявили `tuple` и `set`:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    Это означает:
    
    * Переменная `items_t` — это `tuple` из 3 элементов: `int`, ещё один `int` и `str`.
    * Переменная `items_s` — это `set`, и каждый элемент имеет тип `bytes`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  5. docs_src/python_types/tutorial007_py310.py

    def process_items(items_t: tuple[int, int, str], items_s: set[bytes]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 99 bytes
    - Click Count (0)
  6. docs/es/docs/python-types.md

    Y aún así, el editor sabe que es un `str` y proporciona soporte para eso.
    
    #### Tuple y Set { #tuple-and-set }
    
    Harías lo mismo para declarar `tuple`s y `set`s:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    Esto significa:
    
    * La variable `items_t` es un `tuple` con 3 ítems, un `int`, otro `int`, y un `str`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.6K bytes
    - Click Count (1)
  7. docs/pt/docs/python-types.md

    E, ainda assim, o editor sabe que é um `str` e fornece suporte para isso.
    
    #### Tuple e Set { #tuple-and-set }
    
    Você faria o mesmo para declarar `tuple`s e `set`s:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    Isso significa:
    
    * A variável `items_t` é uma `tuple` com 3 itens, um `int`, outro `int` e uma `str`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  8. fastapi/encoders.py

        AnyUrl: str,
    }
    
    
    def generate_encoders_by_class_tuples(
        type_encoder_map: dict[Any, Callable[[Any], Any]],
    ) -> dict[Callable[[Any], Any], tuple[Any, ...]]:
        encoders_by_class_tuples: dict[Callable[[Any], Any], tuple[Any, ...]] = defaultdict(
            tuple
        )
        for type_, encoder in type_encoder_map.items():
            encoders_by_class_tuples[encoder] += (type_,)
        return encoders_by_class_tuples
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  9. docs/tr/docs/python-types.md

    Ve yine de editör bunun bir `str` olduğunu bilir ve buna göre destek sağlar.
    
    #### Tuple ve Set { #tuple-and-set }
    
    `tuple`'ları ve `set`'leri bildirmek için de aynısını yaparsınız:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    Bu şu anlama gelir:
    
    * `items_t` değişkeni 3 öğeli bir `tuple`'dır: bir `int`, bir başka `int` ve bir `str`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  10. docs/uk/docs/python-types.md

    І все ж редактор знає, що це `str`, і надає підтримку для цього.
    
    #### Tuple and Set { #tuple-and-set }
    
    Ви повинні зробити те ж саме, щоб оголосити `tuple` і `set`:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    Це означає:
    
    * Змінна `items_t` — це `tuple` з 3 елементами: `int`, ще `int`, та `str`.
    * Змінна `items_s` — це `set`, і кожен його елемент має тип `bytes`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 17.4K bytes
    - Click Count (0)
Back to Top