Method: pylint.checkers.utils.get_outer_class
Calls: 26, Exceptions: 0, Paths: 1Back
Path 1: 26 calls (1.0)
ClassDef (26)
None (20) ClassDef (6)
1def get_outer_class(class_node: astroid.ClassDef) -> astroid.ClassDef | None:
2 """Return the class that is the outer class of given (nested) class_node."""
3 parent_klass = class_node.parent.frame(future=True)
4
5 return parent_klass if isinstance(parent_klass, astroid.ClassDef) else None