mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
lib2to3: add Leaf.__unicode__ and Node.__unicode__ (#7394)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user