exception documentation

class TooManyLevelsError(AstroidImportError): (source)

View In Hierarchy

Exception class which is raised when a relative import was beyond the top-level. Standard attributes: level: The level which was attempted. name: the name of the module on which the relative import was attempted.

Method __init__ Undocumented
Instance Variable level Undocumented
Instance Variable name Undocumented

Inherited from AstroidBuildingError (via AstroidImportError):

Instance Variable class_repr Undocumented
Instance Variable cls Undocumented
Instance Variable error Undocumented
Instance Variable modname Undocumented
Instance Variable path Undocumented
Instance Variable source Undocumented

Inherited from AstroidError (via AstroidImportError, AstroidBuildingError):

Method __str__ Undocumented
Instance Variable message Undocumented
def __init__(self, message: str = 'Relative import with too many levels ({level}) for module {name!r}', level: int|None = None, name: str|None = None, **kws: Any): (source)

Undocumented

Undocumented