«
module documentation

This module contains base classes and functions for the nodes and some inference utils.

Class AsyncGenerator Special node representing an async generator
Class BaseInstance An instance base class, which provides lookup methods for potential instances.
Class BoundMethod a special node representing a method bound to an instance
Class Generator a special node representing a generator.
Class Instance A special node representing a class instance.
Class Proxy a simple proxy object
Class UnboundMethod a special node representing a method not bound to an instance
Constant BOOL_SPECIAL_METHOD Undocumented
Constant BUILTINS Undocumented
Constant POSSIBLE_PROPERTIES Undocumented
Constant PROPERTIES Undocumented
Variable helpers Undocumented
Variable manager Undocumented
Variable objectmodel Undocumented
Function _infer_method_result_truth Undocumented
Function _infer_stmts Return an iterator on statements inferred by each statement in stmts.
Function _is_property Undocumented
BOOL_SPECIAL_METHOD: str = (source)

Undocumented

Value
'__bool__'
BUILTINS: str = (source)

Undocumented

Value
'builtins'
POSSIBLE_PROPERTIES: set[str] = (source)

Undocumented

Value
set(['cached_property',
     'cachedproperty',
     'lazyproperty',
     'lazy_property',
     'reify',
     'lazyattribute',
     'lazy_attribute',
...
PROPERTIES: set[str] = (source)

Undocumented

Value
set(['builtins.property', 'abc.abstractproperty'])

Undocumented

Undocumented

objectmodel = (source)

Undocumented

def _infer_method_result_truth(instance, method_name, context): (source)

Undocumented

def _infer_stmts(stmts, context, frame=None): (source)

Return an iterator on statements inferred by each statement in stmts.

def _is_property(meth, context=None): (source)

Undocumented