Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for tuple (0.22 sec)

  1. fastapi/dependencies/utils.py

        dependency_overrides_provider: Optional[Any] = None,
        dependency_cache: Optional[Dict[Tuple[Callable[..., Any], Tuple[str]], Any]] = None,
        async_exit_stack: AsyncExitStack,
    ) -> Tuple[
        Dict[str, Any],
        List[Any],
        Optional[StarletteBackgroundTasks],
        Response,
        Dict[Tuple[Callable[..., Any], Tuple[str]], Any],
    ]:
        values: Dict[str, Any] = {}
        errors: List[Any] = []
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  2. fastapi/openapi/utils.py

        operation_ids: Set[str],
        schema_generator: GenerateJsonSchema,
        model_name_map: ModelNameMap,
        field_mapping: Dict[
            Tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue
        ],
        separate_input_output_schemas: bool = True,
    ) -> Tuple[Dict[str, Any], Dict[str, Any], Dict[str, Any]]:
        path = {}
        security_schemes: Dict[str, Any] = {}
        definitions: Dict[str, Any] = {}
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  3. fastapi/encoders.py

    }
    
    
    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
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  4. fastapi/_compat.py

    
    sequence_annotation_to_type = {
        Sequence: list,
        List: list,
        list: list,
        Tuple: tuple,
        tuple: tuple,
        Set: set,
        set: set,
        FrozenSet: frozenset,
        frozenset: frozenset,
        Deque: deque,
        deque: deque,
    }
    
    sequence_types = tuple(sequence_annotation_to_type.keys())
    
    if PYDANTIC_V2:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. fastapi/routing.py

    import json
    from contextlib import AsyncExitStack
    from enum import Enum, IntEnum
    from typing import (
        Any,
        Callable,
        Coroutine,
        Dict,
        List,
        Optional,
        Sequence,
        Set,
        Tuple,
        Type,
        Union,
    )
    
    from fastapi import params
    from fastapi._compat import (
        ModelField,
        Undefined,
        _get_model_config,
        _model_dump,
        _normalize_errors,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  6. configure.py

      if proc.wait():
        # Errors from find_cuda_config.py were sent to stderr.
        print('Asking for detailed CUDA configuration...\n')
        return False
    
      config = dict(
          tuple(line.decode('ascii').rstrip().split(': ')) for line in proc.stdout)
    
      print('Found CUDA %s in:' % config['cuda_version'])
      print('    %s' % config['cuda_library_dir'])
      print('    %s' % config['cuda_include_dir'])
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  7. fastapi/openapi/models.py

        dependentSchemas: Optional[Dict[str, "SchemaOrBool"]] = None
        prefixItems: Optional[List["SchemaOrBool"]] = None
        # TODO: uncomment and remove below when deprecating Pydantic v1
        # It generales a list of schemas for tuples, before prefixItems was available
        # items: Optional["SchemaOrBool"] = None
        items: Optional[Union["SchemaOrBool", List["SchemaOrBool"]]] = None
        contains: Optional["SchemaOrBool"] = None
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top