- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for Tuple (0.09 sec)
-
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) -
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) -
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) -
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) -
fastapi/types.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 455 bytes - Viewed (0) -
tests/test_typing_python39.py
@needs_py310 def test_typing(): types = { list[int]: [1, 2, 3], dict[str, list[int]]: {"a": [1, 2, 3], "b": [4, 5, 6]}, set[int]: [1, 2, 3], # `set` is converted to `list` tuple[int, ...]: [1, 2, 3], # `tuple` is converted to `list` } for test_type, expect in types.items(): app = FastAPI() @app.post("/", response_model=test_type) def post_endpoint(input: test_type):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 709 bytes - Viewed (0) -
fastapi/security/utils.py
from typing import Optional def get_authorization_scheme_param( authorization_header_value: Optional[str], ) -> tuple[str, str]: if not authorization_header_value: return "", "" scheme, _, param = authorization_header_value.partition(" ")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 286 bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/Tuple4.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.misc; /** * A tuple of four values. * * @param <T1> * The type of the first value * @param <T2> * The type of the second value * @param <T3> * The type of the third value * @param <T4>
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 5.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/Tuple5.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.misc; /** * A tuple of five values. * * @author koichik * @param <T1> * The type of the first value * @param <T2> * The type of the second value * @param <T3> * The type of the third value
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 6.5K bytes - Viewed (0) -
docs/tr/docs/python-types.md
Ve yine, editör bunun bir `str` olduğunu biliyor ve bunun için destek sağlıyor. #### `Tuple` ve `Set` `Tuple` ve `set`lerin tiplerini bildirmek için de aynısını yapıyoruz: {* ../../docs_src/python_types/tutorial007.py hl[1,4] *} Bu şu anlama geliyor: * `items_t` değişkeni sırasıyla `int`, `int`, ve `str` tiplerinden oluşan bir `tuple` türündedir . * `items_s` ise her öğesi `bytes` türünde olan bir `set` örneğidir.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 9.5K bytes - Viewed (0)