Runtime Data Attributes
type.__qualname__
Class name qualified by enclosing lexical definitions, independent of module name. Nested local classes may include <locals>.
Formal Syntax & Structure
python syntaxpython
Cls.__qualname__Return Value
str
Value exposed by this attribute; availability and mutability depend on the owner as described.
Working Example
Example Snippetpython
class Outer: class Inner: passprint(Outer.Inner.__qualname__)