class documentation
Class Method | create |
Special factory method to create instances of nodes that represent Instances. |
Instance Variable | type |
The type information of this instance. |
Method | _get |
Undocumented |
Method | _init |
Undocumented |
@classmethod
def create_instance(cls, *args, classdef=None, type_annotation=None, **kwargs): (source)
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:Any | Undocumented |
classdef:Optional[ | Undocumented |
typeOptional[ | Undocumented |
**kwargs:Any | Undocumented |
Returns | |
Instance | Undocumented |
Undocumented
Parameters | |
classdef:Optional[ | Undocumented |
typeOptional[ | Undocumented |
Returns | |
TypeInfo | Undocumented |