Structs§
Functions§
- decorator_
callee - Return a decorator’s callable expression, peeling an optional invocation.
- expression_
name_ node - Return the name-bearing node of a Python expression using tree-sitter fields.
- python_
deferred_ annotation_ identifier_ ranges - Parse one exactly mapped deferred annotation and return its identifier ranges.
- python_
deferred_ annotation_ tree - Parse one quoted annotation expression while preserving its original source byte coordinates. Literal string values and arbitrary strings are rejected by the same structured gate used by inverse membership.
- python_
keyword_ argument_ label - Whether
nodeis the label of a keyword argument: thexinf(x=1). - python_
node_ is_ in_ annotation - Whether
nodeis contained by a parser field that Python evaluates as an annotation rather than as an ordinary expression. - python_
plain_ string_ literal - The text one plain string literal denotes.
- python_
static_ attribute_ path - The identifier nodes in one static Python value path, from root to leaf.
- python_
static_ type_ path - The identifier nodes in one static Python annotation name, root to leaf. Wrappers and generic arguments are ignored while the named generic origin remains part of the path.