mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import sys
|
||||
from _typeshed import Self
|
||||
from typing import Any, BinaryIO, Generic, Iterable, MutableSequence, TypeVar, Union, overload
|
||||
from typing import Any, BinaryIO, Generic, Iterable, MutableSequence, TypeVar, overload
|
||||
from typing_extensions import Literal, SupportsIndex
|
||||
|
||||
_IntTypeCode = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"]
|
||||
_FloatTypeCode = Literal["f", "d"]
|
||||
_UnicodeTypeCode = Literal["u"]
|
||||
_TypeCode = Union[_IntTypeCode, _FloatTypeCode, _UnicodeTypeCode]
|
||||
_TypeCode = _IntTypeCode | _FloatTypeCode | _UnicodeTypeCode
|
||||
|
||||
_T = TypeVar("_T", int, float, str)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user