Skip to content

NodeType

Base classes

Name Children Inherits
Enum
enum
Create a collection of name/value pairs.

⋔ Inheritance diagram

graph TD
  97041675923200["codetree.NodeType"]
  97041653034448["enum.Enum"]
  128674497047040["builtins.object"]
  97041653034448 --> 97041675923200
  128674497047040 --> 97041653034448

🛈 DocStrings

Bases: Enum

Types of nodes found in Python code structure analysis.

Each enum value represents a different structural element that can be found when parsing Python source code.

Source code in src/jinjarope/codetree.py
class NodeType(Enum):
    """Types of nodes found in Python code structure analysis.

    Each enum value represents a different structural element that can be
    found when parsing Python source code.
    """

    MODULE = auto()
    CLASS = auto()
    FUNCTION = auto()
    METHOD = auto()
    STATICMETHOD = auto()
    CLASSMETHOD = auto()
    PROPERTY = auto()
    ASYNC_FUNCTION = auto()
    ASYNC_METHOD = auto()

:fa-brands-github: Show source on GitHub