Skip to main content

PydanticDeprecationWarning

A Pydantic specific deprecation warning.

Attributes

AttributeTypeDescription
messagestrDescription of the warning.
sincetuple[int, int]Pydantic version in what the deprecation was introduced.
expected_removaltuple[int, int]Pydantic version in what the corresponding functionality expected to be removed.

Constructor

Signature

def PydanticDeprecationWarning(
message: str,
*args: object,
since: tuple[int, int],
expected_removal: tuple[int, int]| None = None
) - > None

Parameters

NameTypeDescription
messagestrDescription of the warning.
*argsobjectVariable length argument list.
sincetuple[int, int]Pydantic version in which the deprecation was introduced.
expected_removal`tuple[int, int]None` = None

Signature

def PydanticDeprecationWarning(
message: string,
*args: object,
since: tuple[int, int],
expected_removal: tuple[int, int]| None
)

Parameters

NameTypeDescription
messagestringThe core warning message describing the deprecated functionality.
*argsobjectVariable length argument list passed to the base DeprecationWarning class.
sincetuple[int, int]The Pydantic version (major, minor) where this deprecation was first introduced.
expected_removal`tuple[int, int]None`