lsst.utils.introspection.get_full_type_name(cls: Any) → str

Return full type name of the supplied entity.

cls : type or object

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

name : str

Full name of type.


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.