mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
from _typeshed import Self
|
||||
from lib2to3.pgen2.grammar import Grammar
|
||||
from typing import Any, Callable, Iterator, Optional, Text, TypeVar, Union
|
||||
from typing import Any, Callable, Iterator, Optional, Text, TypeVar
|
||||
|
||||
_P = TypeVar("_P")
|
||||
_NL = Union[Node, Leaf]
|
||||
_NL = Node | Leaf
|
||||
_Context = tuple[Text, int, int]
|
||||
_Results = dict[Text, _NL]
|
||||
_RawNode = tuple[int, Text, _Context, Optional[list[_NL]]]
|
||||
|
||||
Reference in New Issue
Block a user