getFullTypeName

lsst.daf.butler.core.utils.getFullTypeName(cls: Any) → str

Return full type name of the supplied entity.

Parameters:
cls : type or object

Entity from which to obtain the full name. Can be an instance or a type.

Returns:
name : str

Full name of type.

Notes

Builtins are returned without the builtins specifier included. This allows str to be returned as “str” rather than “builtins.str”. Any parts of the path that start with a leading underscore are removed on the assumption that they are an implementation detail and the entity will be hoisted into the parent namespace.