Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 99 for tuple4 (0.14 sec)

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

    {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py ln[16:19] hl[17] *}
    
    #### Ein zufälliges Item { #a-random-item }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  2. 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 <abbr title="Something we can iterate on with a for loop, like a list, set, etc.">iterable object</abbr> with tuples containing the key and value for each dictionary item.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  3. fastapi/_compat/shared.py

    sequence_annotation_to_type = {
        Sequence: list,
        list: list,
        tuple: tuple,
        set: set,
        frozenset: frozenset,
        deque: deque,
    }
    
    sequence_types = tuple(sequence_annotation_to_type.keys())
    
    Url: type[Any]
    
    
    # Copy of Pydantic v2, compatible with v1
    def lenient_issubclass(
        cls: Any, class_or_tuple: Union[type[Any], tuple[type[Any], ...], None]
    ) -> bool:
        try:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. 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()
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. tests/test_dependency_yield_scope.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()
    router = APIRouter()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  6. 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(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 1.2K bytes
    - Viewed (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/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java

         */
        protected <T> T processVirtualHost(final Function<String, T> func, final T defaultValue) {
            final Tuple3<String, String, String>[] vHosts = ComponentUtil.getFessConfig().getVirtualHosts();
            return LaRequestUtil.getOptionalRequest().map(req -> {
                for (final Tuple3<String, String, String> host : vHosts) {
                    final String headerValue = req.getHeader(host.getValue1());
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. fastapi/_compat/v2.py

    
    def _remap_definitions_and_field_mappings(
        *,
        model_name_map: ModelNameMap,
        definitions: dict[str, Any],
        field_mapping: dict[
            tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue
        ],
    ) -> tuple[
        dict[tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue],
        dict[str, Any],
    ]:
        old_name_to_new_name_map = {}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  10. fastapi/types.py

    UnionType = getattr(types, "UnionType", Union)
    ModelNameMap = dict[Union[type[BaseModel], type[Enum]], str]
    IncEx = Union[set[int], set[str], dict[int, Any], dict[str, Any]]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 455 bytes
    - Viewed (0)
Back to top