Skip to main content

SchemaTypePath

Path defining where schema_type was defined, or where TypeAdapter was called.

Attributes

AttributeTypeDescription
modulestrThe name of the Python module where the schema type was defined or the TypeAdapter was instantiated.
namestrThe name of the specific class or object within the module that defines the schema type.

Constructor

Signature

def SchemaTypePath(
module: str,
name: str
) - > null

Parameters

NameTypeDescription
modulestrThe name of the module where the schema type was defined.
namestrThe name of the schema type or the location where TypeAdapter was called.

Signature

def __new__(
module: str,
name: str
) - > [SchemaTypePath](schematypepath.md?sid=pydantic_plugin_schematypepath)

Parameters

NameTypeDescription
modulestrThe fully qualified Python module name where the type is defined.
namestrThe name of the class or function representing the schema type within the module.