class documentation

class CheckerScope: (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method active​_class Undocumented
Method active​_self​_type An instance or tuple type representing the current class.
Method enclosing​_class Is there a class directly enclosing this function?
Method push​_class Undocumented
Method push​_function Undocumented
Method top​_function Undocumented
Method top​_non​_lambda​_function Undocumented
Instance Variable stack Undocumented
def __init__(self, module): (source)

Undocumented

Parameters
module:MypyFileUndocumented
def active_class(self): (source)

Undocumented

Returns
Optional[TypeInfo]Undocumented
def active_self_type(self): (source)

An instance or tuple type representing the current class.

This returns None unless we are in class body or in a method. In particular, inside a function nested in method this returns None.

Returns
Optional[Union[Instance, TupleType]]Undocumented
def enclosing_class(self): (source)
Is there a class directly enclosing this function?
Returns
Optional[TypeInfo]Undocumented
@contextmanager
def push_class(self, info): (source)

Undocumented

Parameters
info:TypeInfoUndocumented
Returns
Iterator[None]Undocumented
@contextmanager
def push_function(self, item): (source)

Undocumented

Parameters
item:FuncItemUndocumented
Returns
Iterator[None]Undocumented
def top_function(self): (source)

Undocumented

Returns
Optional[FuncItem]Undocumented
def top_non_lambda_function(self): (source)

Undocumented

Returns
Optional[FuncItem]Undocumented
stack = (source)

Undocumented