mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import IO, Any, NoReturn, Text, Tuple, Union
|
||||
from typing import IO, Any, NoReturn, Text, Union
|
||||
|
||||
_File = Union[Text, IO[bytes]]
|
||||
|
||||
@@ -19,7 +19,7 @@ AUDIO_FILE_ENCODING_ADPCM_G723_5: int
|
||||
AUDIO_FILE_ENCODING_ALAW_8: int
|
||||
AUDIO_UNKNOWN_SIZE: int
|
||||
|
||||
_sunau_params = Tuple[int, int, int, int, str, str]
|
||||
_sunau_params = tuple[int, int, int, int, str, str]
|
||||
|
||||
class Au_read:
|
||||
def __init__(self, f: _File) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user