PydanticUndefinedType
No overview available.
Constructor
Signature
def PydanticUndefinedType() - > null
Signature
def __new__() - > [PydanticUndefinedType](../../pydantic/core/pydantic/core/pydanticundefinedtype.md?sid=pydantic_core__pydantic_core_pydanticundefinedtype)
Methods
__copy__()
def __copy__() - > [PydanticUndefinedType](../../pydantic/core/pydantic/core/pydanticundefinedtype.md?sid=pydantic_core__pydantic_core_pydanticundefinedtype)
Returns the singleton instance to maintain the unique identity of the undefined sentinel during shallow copy operations.
Returns
| Type | Description |
|---|---|
[PydanticUndefinedType](../../pydantic/core/pydantic/core/pydanticundefinedtype.md?sid=pydantic_core__pydantic_core_pydanticundefinedtype) | The singleton instance of PydanticUndefinedType. |
__deepcopy__()
def __deepcopy__(
memo: dict
) - > [PydanticUndefinedType](../../pydantic/core/pydantic/core/pydanticundefinedtype.md?sid=pydantic_core__pydantic_core_pydanticundefinedtype)
Returns the singleton instance during deep copy operations to ensure the sentinel remains a unique reference.
Parameters
| Name | Type | Description |
|---|---|---|
| memo | dict | A dictionary used by the copy module to track objects already copied during the current recursion. |
Returns
| Type | Description |
|---|---|
[PydanticUndefinedType](../../pydantic/core/pydantic/core/pydanticundefinedtype.md?sid=pydantic_core__pydantic_core_pydanticundefinedtype) | The singleton instance of PydanticUndefinedType. |
__repr__()
def __repr__() - > str
Returns a string representation of the type for debugging and logging purposes.
Returns
| Type | Description |
|---|---|
str | The string literal 'PydanticUndefined'. |
__reduce__()
def __reduce__() - > str
Provides the necessary state for pickling the singleton instance.
Returns
| Type | Description |
|---|---|
str | The name of the singleton to be used during unpickling. |