Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for redefined (0.05 sec)

  1. fastapi/param_functions.py

    from typing import Annotated, Any, Callable, Optional, Union
    
    from annotated_doc import Doc
    from fastapi import params
    from fastapi._compat import Undefined
    from fastapi.openapi.models import Example
    from pydantic import AliasChoices, AliasPath
    from typing_extensions import Literal, deprecated
    
    _Unset: Any = Undefined
    
    
    def Path(  # noqa: N802
        default: Annotated[
            Any,
            Doc(
                """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  2. fastapi/_compat/v2.py

    
    # TODO: remove when dropping support for Pydantic < v2.12.3
    def asdict(field_info: FieldInfo) -> dict[str, Any]:
        attributes = {}
        for attr in _Attrs:
            value = getattr(field_info, attr, Undefined)
            if value is not Undefined:
                attributes[attr] = value
        return {
            "annotation": field_info.annotation,
            "metadata": field_info.metadata,
            "attributes": attributes,
        }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  3. .bazelrc

    
    # On Windows, `__cplusplus` is wrongly defined without this switch
    # See https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
    common:windows --copt=/Zc:__cplusplus
    common:windows --host_copt=/Zc:__cplusplus
    
    # Tensorflow uses M_* math constants that only get defined by MSVC headers if
    # _USE_MATH_DEFINES is defined.
    common:windows --copt=/D_USE_MATH_DEFINES
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Fri Dec 26 23:20:26 UTC 2025
    - 56.8K bytes
    - Viewed (0)
  4. fastapi/params.py

    from ._compat import (
        Undefined,
    )
    
    _Unset: Any = Undefined
    
    
    class ParamTypes(Enum):
        query = "query"
        header = "header"
        path = "path"
        cookie = "cookie"
    
    
    class Param(FieldInfo):  # type: ignore[misc]
        in_: ParamTypes
    
        def __init__(
            self,
            default: Any = Undefined,
            *,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  5. tests/test_compat.py

    from typing import Union
    
    from fastapi import FastAPI, UploadFile
    from fastapi._compat import (
        Undefined,
        is_uploadfile_sequence_annotation,
    )
    from fastapi._compat.shared import is_bytes_sequence_annotation
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, ConfigDict
    from pydantic.fields import FieldInfo
    
    from .utils import needs_py310
    
    
    def test_model_field_default_required():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. fastapi/_compat/__init__.py

    from .v2 import BaseConfig as BaseConfig
    from .v2 import ModelField as ModelField
    from .v2 import PydanticSchemaGenerationError as PydanticSchemaGenerationError
    from .v2 import RequiredParam as RequiredParam
    from .v2 import Undefined as Undefined
    from .v2 import UndefinedType as UndefinedType
    from .v2 import Url as Url
    from .v2 import Validator as Validator
    from .v2 import _regenerate_error_with_loc as _regenerate_error_with_loc
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  7. fastapi/utils.py

    )
    
    
    def create_model_field(
        name: str,
        type_: Any,
        class_validators: Optional[dict[str, Validator]] = None,
        default: Optional[Any] = Undefined,
        required: Union[bool, UndefinedType] = Undefined,
        model_config: Union[type[BaseConfig], None] = None,
        field_info: Optional[FieldInfo] = None,
        alias: Optional[str] = None,
        mode: Literal["validation", "serialization"] = "validation",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. fastapi/openapi/utils.py

    import http.client
    import inspect
    import warnings
    from collections.abc import Sequence
    from typing import Any, Optional, Union, cast
    
    from fastapi import routing
    from fastapi._compat import (
        ModelField,
        Undefined,
        get_compat_model_name_map,
        get_definitions,
        get_schema_from_model_field,
        lenient_issubclass,
    )
    from fastapi.datastructures import DefaultPlaceholder
    from fastapi.dependencies.models import Dependant
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  9. tests/test_jsonable_encoder.py

    from decimal import Decimal
    from enum import Enum
    from math import isinf, isnan
    from pathlib import PurePath, PurePosixPath, PureWindowsPath
    from typing import Optional, TypedDict
    
    import pytest
    from fastapi._compat import Undefined
    from fastapi.encoders import jsonable_encoder
    from fastapi.exceptions import PydanticV1NotSupportedError
    from pydantic import BaseModel, Field, ValidationError
    
    
    class Person:
        def __init__(self, name: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  10. fastapi/routing.py

    from typing import (
        Annotated,
        Any,
        Callable,
        Optional,
        Union,
    )
    
    from annotated_doc import Doc
    from fastapi import params
    from fastapi._compat import (
        ModelField,
        Undefined,
        annotation_is_pydantic_v1,
        lenient_issubclass,
    )
    from fastapi.datastructures import Default, DefaultPlaceholder
    from fastapi.dependencies.models import Dependant
    from fastapi.dependencies.utils import (
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
Back to top