«
module documentation

Module for some node classes. More nodes in scoped_nodes.py

Class BaseContainer Base class for Set, FrozenSet, Tuple and List.
Class LookupMixIn Mixin to look up a name in the right scope.
Class Pattern Base class for all Pattern nodes.
Type Variable T_Nodes Undocumented
Type Alias AssignedStmtsCall Undocumented
Type Alias AssignedStmtsPossibleNode Undocumented
Function _container_getitem Get a slice or an item, using the given index, for the given sequence.
Function _dict_initialization Undocumented
Function _find_arg Undocumented
Function _format_args Undocumented
Function _infer_slice Undocumented
Function _is_const Undocumented
Function _slice_value Get the value of the given slice index.
Function _two_step_initialization Undocumented
Function _update_const_classes update constant classes, so the keys of CONST_CLS can be reused
Constant _CONST_CLS_CONSTRUCTORS Undocumented
Constant _SLICE_SENTINEL Undocumented

Undocumented

Value
TypeVar('T_Nodes',
        bound=NodeNG)
AssignedStmtsCall = (source)

Undocumented

Value
Callable[[T_Nodes, AssignedStmtsPossibleNode, (InferenceContext | None), (list[int] | None)], Any]
AssignedStmtsPossibleNode = (source)

Undocumented

Value
List | Tuple | AssignName | AssignAttr | None
def _container_getitem(instance, elts, index, context=None): (source)

Get a slice or an item, using the given index, for the given sequence.

def _dict_initialization(cls, value): (source)

Undocumented

def _find_arg(argname, args, rec=False): (source)

Undocumented

def _format_args(args, defaults=None, annotations=None): (source)

Undocumented

def _infer_slice(node, context=None): (source)

Undocumented

def _is_const(value): (source)

Undocumented

def _slice_value(index, context=None): (source)

Get the value of the given slice index.

def _two_step_initialization(cls, value): (source)

Undocumented

def _update_const_classes(): (source)

update constant classes, so the keys of CONST_CLS can be reused

_CONST_CLS_CONSTRUCTORS = (source)
_SLICE_SENTINEL = (source)

Undocumented

Value
object()