Remove or move several TypeAlias declarations (#8444)

This commit is contained in:
Alex Waygood
2022-07-30 15:28:52 +01:00
committed by GitHub
parent 275fc28733
commit fdeb216547
15 changed files with 46 additions and 55 deletions
+8
View File
@@ -0,0 +1,8 @@
from collections.abc import Callable
from lib2to3.pgen2.grammar import Grammar
from lib2to3.pytree import _RawNode
from typing import Any
from typing_extensions import TypeAlias
# This is imported in several lib2to3/pgen2 submodules
_Convert: TypeAlias = Callable[[Grammar, _RawNode], Any]
+2 -1
View File
@@ -1,7 +1,8 @@
from _typeshed import StrPath
from collections.abc import Iterable
from lib2to3.pgen2 import _Convert
from lib2to3.pgen2.grammar import Grammar
from lib2to3.pytree import _NL, _Convert
from lib2to3.pytree import _NL
from logging import Logger
from typing import IO, Any
+2 -1
View File
@@ -1,6 +1,7 @@
from collections.abc import Sequence
from lib2to3.pgen2 import _Convert
from lib2to3.pgen2.grammar import _DFAS, Grammar
from lib2to3.pytree import _NL, _Convert, _RawNode
from lib2to3.pytree import _NL, _RawNode
from typing import Any
from typing_extensions import TypeAlias