module documentation
Abstract syntax tree node classes (i.e. parse tree).
Class |
|
Undocumented |
Class |
|
A single argument in a FuncItem. |
Class |
|
Undocumented |
Class |
|
Represents a typing.assert_type(expr, type) call. |
Class |
|
Assignment expressions in Python 3.8+, like "a := 2". |
Class |
|
Assignment statement. |
Class |
|
Await expression (await ...). |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Bytes literal |
Class |
|
Call expression. |
Class |
|
Cast expression cast(type, expr). |
Class |
|
Class definition |
Class |
|
Comparison expression (e.g. a < b > c < d). |
Class |
|
Complex literal |
Class |
|
Conditional expression (e.g. x if y else z) |
Class |
|
Base type for objects that are valid as error message locations. |
Class |
|
Undocumented |
Class |
|
Specifies how a dataclass-like transform should be applied. The fields here are based on the parameters accepted by `typing.dataclass_transform`. |
Class |
|
A decorated function. |
Class |
|
Undocumented |
Class |
|
Dictionary literal expression {key: value, ...}. |
Class |
|
Dictionary comprehension (e.g. {k: v for k, v in a} |
Class |
|
Ellipsis (...) |
Class |
|
Named tuple expression Enum('name', 'val1 val2 ...'). |
Class |
|
An expression node. |
Class |
|
An expression as a statement, such as print(s). |
Class |
|
A dummy expression. |
Class |
|
Undocumented |
Class |
|
Float literal |
Class |
|
Undocumented |
Class |
|
Abstract base class for function-like nodes. |
Class |
|
Function definition. |
Class |
|
Base class for nodes usable as overloaded function items. |
Class |
|
Generator expression ... for ... in ... [ for ... in ... ] [ if ... ]. |
Class |
|
Declaration global x, y, ... |
Class |
|
Undocumented |
Class |
|
import m [as n] |
Class |
|
from m import * |
Class |
|
Base class for all import statements. |
Class |
|
from m import x [as y], ... |
Class |
|
Index expression x[y]. |
Class |
|
Integer literal |
Class |
|
Lambda expression |
Class |
|
List comprehension (e.g. [x + 1 for x in a]) |
Class |
|
List literal expression [...]. |
Class |
|
Undocumented |
Class |
|
Member access expression x.y |
Class |
|
The abstract syntax tree of a single source file. |
Class |
|
Named tuple expression namedtuple(...) or NamedTuple(...). |
Class |
|
Name expression |
Class |
|
NewType expression NewType(...). |
Class |
|
Common base class for all non-type parse tree nodes. |
Class |
|
Declaration nonlocal x, y, ... |
Class |
|
Operator assignment statement such as x += 1 |
Class |
|
Binary operation. |
Class |
|
A logical node representing all the variants of a multi-declaration function. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Temporary symbol node that will later become a real SymbolNode. |
Class |
|
Ducktype class decorator expression _promote(...). |
Class |
|
Undocumented |
Class |
|
Abstract base class for name-like constructs |
Class |
|
Undocumented |
Class |
|
Reveal type expression reveal_type(expr) or reveal_locals() expression. |
Class |
|
Set comprehension (e.g. {x + 1 for x in a}) |
Class |
|
Set literal expression {value, ...}. |
Class |
|
Slice expression (e.g. 'x:y', 'x:', '::2' or ':'). |
Class |
|
Star expression |
Class |
|
A statement node. |
Class |
|
String literal |
Class |
|
Expression super().name |
Class |
|
Nodes that can be stored in a symbol table. |
Class |
|
Static representation of a namespace dictionary. |
Class |
|
Description of a name binding in a symbol table. |
Class |
|
Temporary dummy node used during type checking. |
Class |
|
Undocumented |
Class |
|
Tuple literal expression (..., ...) |
Class |
|
A symbol node representing a type alias. |
Class |
|
Type alias expression (rvalue). |
Class |
|
Type application expr[type, ...] |
Class |
|
Typed dict expression TypedDict(...). |
Class |
|
The type structure of a single class. |
Class |
|
Type variable expression TypeVar(...). |
Class |
|
Base class for TypeVarExpr, ParamSpecExpr and TypeVarTupleExpr. |
Class |
|
Type variable tuple expression TypeVarTuple(...). |
Class |
|
Unary operation |
Class |
|
A variable. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Function | check |
Undocumented |
Function | check |
Undocumented |
Function | get |
Undocumented |
Function | get |
Return the qualified name representation of a member expression. |
Function | get |
Undocumented |
Function | is |
Return whether the expression is ClassVar[...] |
Function | is |
Check whether `node` corresponds to a final attribute. |
Function | local |
Iterate over local definitions (not imported) in a symbol table. |
Function | set |
Undocumented |
Constant | CLASSDEF |
Undocumented |
Constant | CONTRAVARIANT |
Undocumented |
Constant | COVARIANT |
Undocumented |
Constant | deserialize |
Undocumented |
Constant | FUNC |
Undocumented |
Constant | FUNCBASE |
Undocumented |
Constant | FUNCDEF |
Undocumented |
Constant | FUNCITEM |
Undocumented |
Constant | GDEF |
Undocumented |
Constant | implicit |
Undocumented |
Constant | IMPLICITLY |
Undocumented |
Constant | INVARIANT |
Undocumented |
Constant | inverse |
Undocumented |
Constant | IS |
Undocumented |
Constant | LDEF |
Undocumented |
Constant | LITERAL |
Undocumented |
Constant | LITERAL |
Undocumented |
Constant | LITERAL |
Undocumented |
Constant | MDEF |
Undocumented |
Constant | node |
Undocumented |
Constant | NOT |
Undocumented |
Constant | REVEAL |
Undocumented |
Constant | REVEAL |
Undocumented |
Constant | reverse |
Undocumented |
Constant | RUNTIME |
Undocumented |
Constant | SYMBOL |
Undocumented |
Constant | type |
Undocumented |
Constant | type |
Undocumented |
Constant | typing |
Undocumented |
Constant | UNBOUND |
Undocumented |
Constant | VAR |
Undocumented |
Constant | VAR |
Undocumented |
Type Variable | T |
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Constant | _nongen |
Undocumented |
def check_arg_kinds(arg_kinds:
list[ ArgKind]
, nodes: list[ T]
, fail: Callable[ [ str, T], None]
):
(source)
¶
Undocumented
def check_arg_names(names:
Sequence[ str|None]
, nodes: list[ T]
, fail: Callable[ [ str, T], None]
, description: str
= 'function definition'):
(source)
¶
Undocumented
Return the qualified name representation of a member expression. Return a string of form foo.bar, foo.bar.baz, or similar, or None if the argument cannot be represented in this form.
def local_definitions(names:
SymbolTable
, name_prefix: str
, info: TypeInfo|None
= None) -> Iterator[ Definition]
:
(source)
¶
Iterate over local definitions (not imported) in a symbol table. Recursively iterate over class members and nested classes.
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|