PydanticDeprecationWarning
A Pydantic specific deprecation warning.
Attributes
| Attribute | Type | Description |
|---|---|---|
| message | str | Description of the warning. |
| since | tuple[int, int] | Pydantic version in what the deprecation was introduced. |
| expected_removal | tuple[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
| Name | Type | Description |
|---|---|---|
| message | str | Description of the warning. |
| *args | object | Variable length argument list. |
| since | tuple[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
| Name | Type | Description |
|---|---|---|
| message | string | The core warning message describing the deprecated functionality. |
| *args | object | Variable length argument list passed to the base DeprecationWarning class. |
| since | tuple[int, int] | The Pydantic version (major, minor) where this deprecation was first introduced. |
| expected_removal | `tuple[int, int] | None` |