Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for eval (3.69 sec)

  1. fastapi/_compat.py

        from pydantic._internal._schema_generation_shared import (  # type: ignore[attr-defined]
            GetJsonSchemaHandler as GetJsonSchemaHandler,
        )
        from pydantic._internal._typing_extra import eval_type_lenient
        from pydantic._internal._utils import lenient_issubclass as lenient_issubclass
        from pydantic.fields import FieldInfo
        from pydantic.json_schema import GenerateJsonSchema as GenerateJsonSchema
    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)
  2. tests/test_jsonable_encoder.py

    
    def test_custom_enum_encoders():
        def custom_enum_encoder(v: Enum):
            return v.value.lower()
    
        class MyEnum(Enum):
            ENUM_VAL_1 = "ENUM_VAL_1"
    
        instance = MyEnum.ENUM_VAL_1
    
        encoded_instance = jsonable_encoder(
            instance, custom_encoder={MyEnum: custom_enum_encoder}
        )
        assert encoded_instance == custom_enum_encoder(instance)
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. configure.py

                             'Assuming to be a scripting mistake.' %
                             (var_name, n_ask_attempts))
    
      if resolve_symlinks:
        val = os.path.realpath(val)
      environ_cp[var_name] = val
      return val
    
    
    def set_clang_cuda_compiler_path(environ_cp):
      """Set CLANG_CUDA_COMPILER_PATH."""
      default_clang_path = '/usr/lib/llvm-17/bin/clang'
      if not os.path.exists(default_clang_path):
    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)
Back to top