Use lowercase set/deque in stdlib subdirectories (#6350)

This commit is contained in:
Alex Waygood
2021-11-20 12:20:25 +00:00
committed by GitHub
parent 5c8e68f0eb
commit 029cf555e7
11 changed files with 44 additions and 42 deletions

View File

@@ -1,6 +1,6 @@
from lib2to3.pgen2.grammar import _DFAS, Grammar
from lib2to3.pytree import _NL, _Convert, _RawNode
from typing import Any, Sequence, Set
from typing import Any, Sequence
_Context = Sequence[Any]
@@ -16,7 +16,7 @@ class Parser:
convert: _Convert
stack: list[tuple[_DFAS, int, _RawNode]]
rootnode: _NL | None
used_names: Set[str]
used_names: set[str]
def __init__(self, grammar: Grammar, convert: _Convert | None = ...) -> None: ...
def setup(self, start: int | None = ...) -> None: ...
def addtoken(self, type: int, value: str | None, context: _Context) -> bool: ...