Skip to main content

getattr_migration

Implement PEP 562 for objects that were either moved or removed on the migration to V2.

def getattr_migration(
module: str
) - > Callable[[str], Any]

Implement PEP 562 for objects that were either moved or removed on the migration to V2.

Parameters

NameTypeDescription
modulestrThe fully qualified name of the module where the attribute access is occurring.

Returns

TypeDescription
Callable[[str], Any]A callable that will raise an error if the object is not found.