Nodes

Nodes

astroid.nodes.AnnAssign(lineno, col_offset, ...)

Class representing an ast.AnnAssign node.

astroid.nodes.Arguments(vararg, kwarg, parent)

Class representing an ast.arguments node.

astroid.nodes.Assert(lineno, col_offset, ...)

Class representing an ast.Assert node.

astroid.nodes.Assign(lineno, col_offset, ...)

Class representing an ast.Assign node.

astroid.nodes.AssignAttr(attrname, lineno, ...)

Variation of ast.Assign representing assignment to an attribute.

astroid.nodes.AssignName(name, lineno, ...)

Variation of ast.Assign representing assignment to a name.

astroid.nodes.AsyncFor(lineno, col_offset, ...)

Class representing an ast.AsyncFor node.

astroid.nodes.AsyncFunctionDef(name, lineno, ...)

Class representing an ast.FunctionDef node.

astroid.nodes.AsyncWith([lineno, ...])

Asynchronous with built with the async keyword.

astroid.nodes.Attribute(attrname, lineno, ...)

Class representing an ast.Attribute node.

astroid.nodes.AugAssign(op, lineno, ...)

Class representing an ast.AugAssign node.

astroid.nodes.Await(lineno, col_offset, ...)

Class representing an ast.Await node.

astroid.nodes.BinOp(op, lineno, col_offset, ...)

Class representing an ast.BinOp node.

astroid.nodes.BoolOp(op[, lineno, ...])

Class representing an ast.BoolOp node.

astroid.nodes.Break(lineno, col_offset, ...)

Class representing an ast.Break node.

astroid.nodes.Call(lineno, col_offset, ...)

Class representing an ast.Call node.

astroid.nodes.ClassDef(name, lineno, ...)

Class representing an ast.ClassDef node.

astroid.nodes.Compare(lineno, col_offset, ...)

Class representing an ast.Compare node.

astroid.nodes.Comprehension(lineno, ...)

Class representing an ast.comprehension node.

astroid.nodes.Const(value, lineno, ...)

Class representing any constant including num, str, bool, None, bytes.

astroid.nodes.Continue(lineno, col_offset, ...)

Class representing an ast.Continue node.

astroid.nodes.Decorators(lineno, col_offset, ...)

A node representing a list of decorators.

astroid.nodes.DelAttr(attrname, lineno, ...)

Variation of ast.Delete representing deletion of an attribute.

astroid.nodes.DelName(name, lineno, ...)

Variation of ast.Delete representing deletion of a name.

astroid.nodes.Delete(lineno, col_offset, ...)

Class representing an ast.Delete node.

astroid.nodes.Dict(lineno, col_offset, ...)

Class representing an ast.Dict node.

astroid.nodes.DictComp(lineno, col_offset, ...)

Class representing an ast.DictComp node.

astroid.nodes.DictUnpack(lineno, col_offset, ...)

Represents the unpacking of dicts into dicts using PEP 448.

astroid.nodes.EmptyNode(lineno, col_offset, ...)

Holds an arbitrary object in the LocalsDictNodeNG.locals.

astroid.nodes.ExceptHandler(lineno, ...)

Class representing an ast.ExceptHandler.

astroid.nodes.Expr(lineno, col_offset, ...)

Class representing an ast.Expr node.

astroid.nodes.For(lineno, col_offset, ...)

Class representing an ast.For node.

astroid.nodes.FormattedValue([lineno, ...])

Class representing an ast.FormattedValue node.

astroid.nodes.FunctionDef(name, lineno, ...)

Class representing an ast.FunctionDef.

astroid.nodes.GeneratorExp(lineno, ...)

Class representing an ast.GeneratorExp node.

astroid.nodes.Global(names[, lineno, ...])

Class representing an ast.Global node.

astroid.nodes.If(lineno, col_offset, parent, ...)

Class representing an ast.If node.

astroid.nodes.IfExp(lineno, col_offset, ...)

Class representing an ast.IfExp node.

astroid.nodes.Import(names[, lineno, ...])

Class representing an ast.Import node.

astroid.nodes.ImportFrom(fromname, names[, ...])

Class representing an ast.ImportFrom node.

astroid.nodes.JoinedStr([lineno, ...])

Represents a list of string expressions to be joined.

astroid.nodes.Keyword(arg, lineno, ...)

Class representing an ast.keyword node.

astroid.nodes.Lambda(lineno, col_offset, ...)

Class representing an ast.Lambda node.

astroid.nodes.List([ctx, lineno, ...])

Class representing an ast.List node.

astroid.nodes.ListComp(lineno, col_offset, ...)

Class representing an ast.ListComp node.

astroid.nodes.Match([lineno, col_offset, ...])

Class representing a ast.Match node.

astroid.nodes.MatchAs([lineno, col_offset, ...])

Class representing a ast.MatchAs node.

astroid.nodes.MatchCase(*[, parent])

Class representing a ast.match_case node.

astroid.nodes.MatchClass([lineno, ...])

Class representing a ast.MatchClass node.

astroid.nodes.MatchMapping([lineno, ...])

Class representing a ast.MatchMapping node.

astroid.nodes.MatchOr([lineno, col_offset, ...])

Class representing a ast.MatchOr node.

astroid.nodes.MatchSequence([lineno, ...])

Class representing a ast.MatchSequence node.

astroid.nodes.MatchSingleton(*, value[, ...])

Class representing a ast.MatchSingleton node.

astroid.nodes.MatchStar([lineno, ...])

Class representing a ast.MatchStar node.

astroid.nodes.MatchValue([lineno, ...])

Class representing a ast.MatchValue node.

astroid.nodes.Module(name[, file, path, ...])

Class representing an ast.Module node.

astroid.nodes.Name(name, lineno, col_offset, ...)

Class representing an ast.Name node.

astroid.nodes.Nonlocal(names[, lineno, ...])

Class representing an ast.Nonlocal node.

astroid.nodes.ParamSpec(lineno, col_offset, ...)

Class representing a ast.ParamSpec node.

astroid.nodes.Pass(lineno, col_offset, ...)

Class representing an ast.Pass node.

astroid.nodes.Raise(lineno, col_offset, ...)

Class representing an ast.Raise node.

astroid.nodes.Return(lineno, col_offset, ...)

Class representing an ast.Return node.

astroid.nodes.Set(lineno, col_offset, ...)

Class representing an ast.Set node.

astroid.nodes.SetComp(lineno, col_offset, ...)

Class representing an ast.SetComp node.

astroid.nodes.Slice(lineno, col_offset, ...)

Class representing an ast.Slice node.

astroid.nodes.Starred(ctx, lineno, ...)

Class representing an ast.Starred node.

astroid.nodes.Subscript(ctx, lineno, ...)

Class representing an ast.Subscript node.

astroid.nodes.Try(*, lineno, col_offset, ...)

Class representing a ast.Try node.

astroid.nodes.TryStar(*[, lineno, ...])

Class representing an ast.TryStar node.

astroid.nodes.Tuple([ctx, lineno, ...])

Class representing an ast.Tuple node.

astroid.nodes.TypeAlias(lineno, col_offset, ...)

Class representing a ast.TypeAlias node.

astroid.nodes.TypeVar(lineno, col_offset, ...)

Class representing a ast.TypeVar node.

astroid.nodes.TypeVarTuple(lineno, ...)

Class representing a ast.TypeVarTuple node.

astroid.nodes.UnaryOp(op, lineno, ...)

Class representing an ast.UnaryOp node.

astroid.nodes.Unknown([lineno, col_offset, ...])

This node represents a node in a constructed AST where introspection is not possible.

astroid.nodes.While(lineno, col_offset, ...)

Class representing an ast.While node.

astroid.nodes.With([lineno, col_offset, ...])

Class representing an ast.With node.

astroid.nodes.Yield(lineno, col_offset, ...)

Class representing an ast.Yield node.

astroid.nodes.YieldFrom(lineno, col_offset, ...)

Class representing an ast.YieldFrom node.