mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
1 parent
e6cb341d94
commit
8d5d2520ac
237 files changed
+966
-1069
No files matched your search
@@ -1,11 +1,11 @@
|
||||
from lib2to3.pgen2.grammar import Grammar
|
||||
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, TypeVar, Union
|
||||
from typing import Any, Callable, Iterator, Optional, TypeVar, Union
|
||||
|
||||
_P = TypeVar("_P")
|
||||
_NL = Union[Node, Leaf]
|
||||
_Context = Tuple[str, int, int]
|
||||
_Results = Dict[str, _NL]
|
||||
_RawNode = Tuple[int, str, _Context, Optional[List[_NL]]]
|
||||
_Context = tuple[str, int, int]
|
||||
_Results = dict[str, _NL]
|
||||
_RawNode = tuple[int, str, _Context, Optional[list[_NL]]]
|
||||
_Convert = Callable[[Grammar, _RawNode], Any]
|
||||
|
||||
HUGE: int
|
||||
|
||||
Reference in new issue
Block a user