class documentation

class Generator(BaseInstance): (source)

Known subclasses: astroid.bases.AsyncGenerator

View In Hierarchy

a special node representing a generator.

Proxied class is set once for all in raw_building.

Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method bool​_value Undocumented
Method callable Undocumented
Method display​_type Undocumented
Method infer​_yield​_types Undocumented
Method pytype Undocumented
Class Variable special​_attributes Undocumented
Instance Variable parent Undocumented
Instance Variable _call​_context Undocumented

Inherited from BaseInstance:

Method getattr Undocumented
Method igetattr inferred getattr
Method infer​_call​_result infer what a class instance is returning when called
Method _wrap​_attr wrap bound methods of attrs in a InstanceMethod proxies

Inherited from Proxy (via BaseInstance):

Method __getattr__ Undocumented
Method infer Undocumented
Instance Variable _proxied Undocumented
def __init__(self, parent=None, generator_initial_context=None): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __str__(self): (source)

Undocumented

def bool_value(self, context=None): (source)

Undocumented

def callable(self): (source)

Undocumented

def display_type(self): (source)
@decorators.cached
def infer_yield_types(self): (source)

Undocumented

def pytype(self): (source)

Undocumented

special_attributes = (source)
parent = (source)

Undocumented

_call_context = (source)

Undocumented