class documentation

This class is selectively added to the bases of the following ast nodes: Constant, List, Tuple, Dict, Set.

Class Method create_instance Special factory method to create instances of nodes that represent Instances.
Instance Variable type_info The type information of this instance.
Method _get_type_info Undocumented
Method _init_type_info Undocumented
@classmethod
def create_instance(cls, *args, classdef=None, type_annotation=None, **kwargs): (source)

Special factory method to create instances of nodes that represent Instances.

It can be instanciated directly to represent any object.

It's also used to create inferred ast.Constant, ast.List, ast.Tuple, ast.Dict or ast.Set nodes.

Parameters
*args:AnyUndocumented
classdef:Optional[ast.ClassDef]Undocumented
type_annotation:Optional[ast.expr]Undocumented
**kwargs:AnyUndocumented
Returns
InstanceUndocumented
type_info = (source)

The type information of this instance.

def _get_type_info(self, classdef, type_annotation): (source)

Undocumented

Parameters
classdef:Optional[_typing.ClassDef]Undocumented
type_annotation:Optional[ast.expr]Undocumented
Returns
TypeInfoUndocumented
def _init_type_info(self, classdef=None, type_annotation=None): (source)

Undocumented

Parameters
classdef:Optional[ast.ClassDef]Undocumented
type_annotation:Optional[ast.expr]Undocumented