Expand description
Strongly-typed AST types for Python, generated from tree-sitter-python’s node-types.json.
Structs§
- Aliased
Import - Argument
List - AsPattern
- AsPattern
Target - Assert
Statement - Assignment
- Attribute
- Augmented
Assignment - Await
- Binary
Operator - Block
- Boolean
Operator - Break
Statement - Call
- Case
Clause - Case
Pattern - Chevron
- Class
Definition - Class
Pattern - Comment
- Comparison
Operator - Complex
Pattern - Concatenated
String - Conditional
Expression - Constrained
Type - Continue
Statement - Decorated
Definition - Decorator
- Default
Parameter - Delete
Statement - Dict
Pattern - Dictionary
- Dictionary
Comprehension - Dictionary
Splat - Dictionary
Splat Pattern - Dotted
Name - Elif
Clause - Ellipsis
- Else
Clause - Escape
Interpolation - Escape
Sequence - Except
Clause - Exec
Statement - Expression
List - Expression
Statement - False
- Finally
Clause - Float
- ForIn
Clause - ForStatement
- Format
Expression - Format
Specifier - Function
Definition - Future
Import Statement - Generator
Expression - Generic
Type - Global
Statement - Identifier
- IfClause
- IfStatement
- Import
From Statement - Import
Prefix - Import
Statement - Integer
- Interpolation
- Keyword
Argument - Keyword
Pattern - Keyword
Separator - Lambda
- Lambda
Parameters - Line
Continuation - List
- List
Comprehension - List
Pattern - List
Splat - List
Splat Pattern - Match
Statement - Member
Type - Module
- Named
Expression - None
- Nonlocal
Statement - NotOperator
- Pair
- Parameters
- Parenthesized
Expression - Parenthesized
List Splat - Pass
Statement - Pattern
List - Positional
Separator - Print
Statement - Raise
Statement - Relative
Import - Return
Statement - Set
- SetComprehension
- Slice
- Span
- Splat
Pattern - Splat
Type - String
- String
Content - String
End - String
Start - Subscript
- True
- TryStatement
- Tuple
- Tuple
Pattern - Type
- Type
Alias Statement - Type
Conversion - Type
Parameter - Typed
Default Parameter - Typed
Parameter - Unary
Operator - Union
Pattern - Union
Type - While
Statement - Wildcard
Import - With
Clause - With
Item - With
Statement - Yield
Enums§
- AnyNode
- Argument
List Children - AsPattern
Children - Assignment
Left - Assignment
Right - Augmented
Assignment Left - Augmented
Assignment Operator - Augmented
Assignment Right - Binary
Operator Operator - Block
Children - Boolean
Operator Operator - Call
Arguments - Case
Pattern Children - Class
Pattern Children - Comparison
Operator Operators - Complex
Pattern Children - Compound
Statement - Decorated
Definition Definition - Default
Parameter Name - Delete
Statement Children - Dict
Pattern Key - Dictionary
Children - Dictionary
Comprehension Children - Dictionary
Splat Pattern Children - Exec
Statement Code - Expression
- Expression
Statement Children - ForIn
Clause Left - ForIn
Clause Right - ForStatement
Left - ForStatement
Right - Format
Expression Expression - Future
Import Statement Name - Generator
Expression Children - Generic
Type Children - IfStatement
Alternative - Import
From Statement Module Name - Import
From Statement Name - Import
Statement Name - Interpolation
Expression - Keyword
Pattern Children - List
Children - List
Comprehension Children - List
Pattern Children - List
Splat Children - List
Splat Pattern Children - Member
Type Children - Module
Children - Parameter
- Parenthesized
Expression Children - Parenthesized
List Splat Children - Parse
Error - Pattern
- Primary
Expression - Raise
Statement Children - Relative
Import Children - Return
Statement Children - SetChildren
- SetComprehension
Children - Simple
Statement - String
Children - String
Content Children - Subscript
Subscript - TryStatement
Children - Tuple
Children - Tuple
Pattern Children - Type
Children - Typed
Parameter Children - Unary
Operator Operator - Union
Pattern Children - Yield
Children