lib2to3: add Leaf.__unicode__ and Node.__unicode__ (#7394)

This commit is contained in:
Alex Waygood
2022-02-27 22:49:28 +00:00
committed by GitHub
parent 4f0d8c593e
commit 3000bb8d91

View File

@@ -49,6 +49,7 @@ class Node(Base):
def set_child(self, i: int, child: _NL) -> None: ...
def insert_child(self, i: int, child: _NL) -> None: ...
def append_child(self, child: _NL) -> None: ...
def __unicode__(self) -> str: ...
class Leaf(Base):
lineno: int
@@ -58,6 +59,7 @@ class Leaf(Base):
def __init__(
self, type: int, value: str, context: _Context | None = ..., prefix: str | None = ..., fixers_applied: list[Any] = ...
) -> None: ...
def __unicode__(self) -> str: ...
def convert(gr: Grammar, raw_node: _RawNode) -> _NL: ...