SILENT KILLERPanel

Current Path: > > opt > hc_python > > > > lib > > python3.12 > site-packages > pydantic >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/hc_python////lib//python3.12/site-packages/pydantic/

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
_internal Directory - -
deprecated Directory - -
experimental Directory - -
plugin Directory - -
v1 Directory - -
__init__.py File 13931 bytes April 04 2025 08:02:35.
_migration.py File 11913 bytes April 04 2025 08:02:35.
alias_generators.py File 2124 bytes April 04 2025 08:02:35.
aliases.py File 4819 bytes April 04 2025 08:02:35.
annotated_handlers.py File 4353 bytes April 04 2025 08:02:35.
class_validators.py File 148 bytes April 04 2025 08:02:35.
color.py File 21494 bytes April 04 2025 08:02:35.
config.py File 35112 bytes April 04 2025 08:02:35.
dataclasses.py File 13909 bytes April 04 2025 08:02:35.
datetime_parse.py File 150 bytes April 04 2025 08:02:35.
decorator.py File 145 bytes April 04 2025 08:02:35.
env_settings.py File 148 bytes April 04 2025 08:02:35.
error_wrappers.py File 150 bytes April 04 2025 08:02:35.
errors.py File 4835 bytes April 04 2025 08:02:35.
fields.py File 51746 bytes April 04 2025 08:02:35.
functional_serializers.py File 14616 bytes April 04 2025 08:02:35.
functional_validators.py File 24224 bytes April 04 2025 08:02:35.
generics.py File 144 bytes April 04 2025 08:02:35.
json.py File 140 bytes April 04 2025 08:02:35.
json_schema.py File 106297 bytes April 04 2025 08:02:35.
main.py File 70106 bytes April 04 2025 08:02:35.
mypy.py File 56972 bytes April 04 2025 08:02:35.
networks.py File 22713 bytes April 04 2025 08:02:35.
parse.py File 141 bytes April 04 2025 08:02:35.
py.typed File 0 bytes April 04 2025 08:02:35.
root_model.py File 6194 bytes April 04 2025 08:02:35.
schema.py File 142 bytes April 04 2025 08:02:35.
tools.py File 141 bytes April 04 2025 08:02:35.
type_adapter.py File 24974 bytes April 04 2025 08:02:35.
types.py File 95744 bytes April 04 2025 08:02:35.
typing.py File 138 bytes April 04 2025 08:02:35.
utils.py File 141 bytes April 04 2025 08:02:35.
validate_call_decorator.py File 2127 bytes April 04 2025 08:02:35.
validators.py File 146 bytes April 04 2025 08:02:35.
version.py File 2442 bytes April 04 2025 08:02:35.
warnings.py File 2711 bytes April 04 2025 08:02:35.

Reading File: //opt/hc_python////lib//python3.12/site-packages/pydantic//warnings.py

"""Pydantic-specific warnings."""

from __future__ import annotations as _annotations

from .version import version_short

__all__ = (
    'PydanticDeprecatedSince20',
    'PydanticDeprecationWarning',
    'PydanticDeprecatedSince26',
    'PydanticExperimentalWarning',
)


class PydanticDeprecationWarning(DeprecationWarning):
    """A Pydantic specific deprecation warning.

    This warning is raised when using deprecated functionality in Pydantic. It provides information on when the
    deprecation was introduced and the expected version in which the corresponding functionality will be removed.

    Attributes:
        message: Description of the warning.
        since: Pydantic version in what the deprecation was introduced.
        expected_removal: Pydantic version in what the corresponding functionality expected to be removed.
    """

    message: str
    since: tuple[int, int]
    expected_removal: tuple[int, int]

    def __init__(
        self, message: str, *args: object, since: tuple[int, int], expected_removal: tuple[int, int] | None = None
    ) -> None:
        super().__init__(message, *args)
        self.message = message.rstrip('.')
        self.since = since
        self.expected_removal = expected_removal if expected_removal is not None else (since[0] + 1, 0)

    def __str__(self) -> str:
        message = (
            f'{self.message}. Deprecated in Pydantic V{self.since[0]}.{self.since[1]}'
            f' to be removed in V{self.expected_removal[0]}.{self.expected_removal[1]}.'
        )
        if self.since == (2, 0):
            message += f' See Pydantic V2 Migration Guide at https://errors.pydantic.dev/{version_short()}/migration/'
        return message


class PydanticDeprecatedSince20(PydanticDeprecationWarning):
    """A specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.0."""

    def __init__(self, message: str, *args: object) -> None:
        super().__init__(message, *args, since=(2, 0), expected_removal=(3, 0))


class PydanticDeprecatedSince26(PydanticDeprecationWarning):
    """A specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.6."""

    def __init__(self, message: str, *args: object) -> None:
        super().__init__(message, *args, since=(2, 0), expected_removal=(3, 0))


class GenericBeforeBaseModelWarning(Warning):
    pass


class PydanticExperimentalWarning(Warning):
    """A Pydantic specific experimental functionality warning.

    This warning is raised when using experimental functionality in Pydantic.
    It is raised to warn users that the functionality may change or be removed in future versions of Pydantic.
    """

SILENT KILLER Tool