Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 130 for tuple3 (0.04 seconds)

  1. docs/en/docs/tutorial/query-params-str-validations.md

    Did you notice? a string using `value.startswith()` can take a tuple, and it will check each value in the tuple:
    
    {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py ln[16:19] hl[17] *}
    
    #### A Random Item { #a-random-item }
    
    With `data.items()` we get an <dfn title="Something we can iterate on with a for loop, like a list, set, etc.">iterable object</dfn> with tuples containing the key and value for each dictionary item.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  2. docs/tr/docs/tutorial/body-nested-models.md

    Ancak Python’da, iç tipleri olan list’leri (ya da "type parameter" içeren tipleri) tanımlamanın belirli bir yolu vardır:
    
    ### Tip parametresiyle bir `list` tanımlayın { #declare-a-list-with-a-type-parameter }
    
    `list`, `dict`, `tuple` gibi type parameter (iç tip) alan tipleri tanımlamak için, iç tipi(leri) köşeli parantezlerle "type parameter" olarak verin: `[` ve `]`
    
    ```Python
    my_list: list[str]
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  3. docs/tr/docs/tutorial/query-params-str-validations.md

    ---
    
    Ama bu örnek kodun detaylarını merak ediyorsanız, birkaç ek bilgi:
    
    #### `value.startswith()` ile String { #string-with-value-startswith }
    
    Fark ettiniz mi? `value.startswith()` ile bir string, tuple alabilir ve tuple içindeki her değeri kontrol eder:
    
    {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py ln[16:19] hl[17] *}
    
    #### Rastgele Bir Item { #a-random-item }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 17.3K bytes
    - Click Count (0)
  4. docs/ko/docs/python-types.md

    변수 `item`이 리스트 `items`의 요소 중 하나라는 점에 주목하세요.
    
    그리고 에디터는 여전히 이것이 `str`임을 알고, 그에 대한 지원을 제공합니다.
    
    #### Tuple과 Set { #tuple-and-set }
    
    `tuple`과 `set`도 동일하게 선언할 수 있습니다:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    이는 다음을 의미합니다:
    
    * 변수 `items_t`는 3개의 아이템을 가진 `tuple`이며, `int`, 또 다른 `int`, 그리고 `str`입니다.
    * 변수 `items_s`는 `set`이며, 각 아이템의 타입은 `bytes`입니다.
    
    #### Dict { #dict }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 13K bytes
    - Click Count (0)
  5. docs/fr/docs/tutorial/query-params-str-validations.md

    {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py ln[16:19] hl[17] *}
    
    #### Un élément aléatoire { #a-random-item }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 19K bytes
    - Click Count (0)
  6. fastapi/_compat/shared.py

    WithArgsTypes: tuple[Any, ...] = (
        typing._GenericAlias,  # type: ignore[attr-defined]
        types.GenericAlias,
        types.UnionType,
    )  # pyright: ignore[reportAttributeAccessIssue]
    
    PYDANTIC_VERSION_MINOR_TUPLE = tuple(int(x) for x in PYDANTIC_VERSION.split(".")[:2])
    
    
    sequence_annotation_to_type = {
        Sequence: list,
        list: list,
        tuple: tuple,
        set: set,
        frozenset: frozenset,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  7. tests/test_tuples.py

    
    class ItemGroup(BaseModel):
        items: list[tuple[str, str]]
    
    
    class Coordinate(BaseModel):
        x: float
        y: float
    
    
    @app.post("/model-with-tuple/")
    def post_model_with_tuple(item_group: ItemGroup):
        return item_group
    
    
    @app.post("/tuple-of-models/")
    def post_tuple_of_models(square: tuple[Coordinate, Coordinate]):
        return square
    
    
    @app.post("/tuple-form/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  8. tests/test_forms_from_non_typing_sequences.py

    def post_form_param_list(items: list = Form()):
        return items
    
    
    @app.post("/form/python-set")
    def post_form_param_set(items: set = Form()):
        return items
    
    
    @app.post("/form/python-tuple")
    def post_form_param_tuple(items: tuple = Form()):
        return items
    
    
    client = TestClient(app)
    
    
    def test_python_list_param_as_form():
        response = client.post(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 1.2K bytes
    - Click Count (0)
  9. fastapi/types.py

    DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
    UnionType = getattr(types, "UnionType", Union)
    ModelNameMap = dict[type[BaseModel] | type[Enum], str]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 438 bytes
    - Click Count (0)
  10. tests/test_dependency_yield_scope_websockets.py

        return named_session, session
    
    
    BrokenSessionsDep = Annotated[
        tuple[NamedSession, Session], Depends(get_named_func_session)
    ]
    NamedSessionsFuncDep = Annotated[
        tuple[NamedSession, Session], Depends(get_named_func_session, scope="function")
    ]
    
    RegularSessionsDep = Annotated[
        tuple[NamedSession, Session], Depends(get_named_regular_func_session)
    ]
    
    app = FastAPI()
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6K bytes
    - Click Count (0)
Back to Top