Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)

This commit is contained in:
Alex Waygood
2022-01-18 15:14:03 +00:00
committed by GitHub
parent aa885ecd65
commit 8af5e0d340
264 changed files with 2217 additions and 2411 deletions

View File

@@ -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: ...