Skip to main content

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

TypeDescription
[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

NameTypeDescription
memodictA dictionary used by the copy module to track objects already copied during the current recursion.

Returns

TypeDescription
[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

TypeDescription
strThe string literal 'PydanticUndefined'.

__reduce__()

def __reduce__() - > str

Provides the necessary state for pickling the singleton instance.

Returns

TypeDescription
strThe name of the singleton to be used during unpickling.