From 3000bb8d91a4451ae28e3efc96a582a7516d39b9 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 27 Feb 2022 22:49:28 +0000 Subject: [PATCH] lib2to3: add Leaf.__unicode__ and Node.__unicode__ (#7394) --- stdlib/lib2to3/pytree.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/lib2to3/pytree.pyi b/stdlib/lib2to3/pytree.pyi index 23a0069db..b0e61c3a3 100644 --- a/stdlib/lib2to3/pytree.pyi +++ b/stdlib/lib2to3/pytree.pyi @@ -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: ...