mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +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, BinaryIO, NoReturn, Text, Tuple, Union
|
||||
from typing import IO, Any, BinaryIO, NoReturn, Text, Union
|
||||
|
||||
_File = Union[Text, IO[bytes]]
|
||||
|
||||
@@ -6,7 +6,7 @@ class Error(Exception): ...
|
||||
|
||||
WAVE_FORMAT_PCM: int
|
||||
|
||||
_wave_params = Tuple[int, int, int, int, str, str]
|
||||
_wave_params = tuple[int, int, int, int, str, str]
|
||||
|
||||
class Wave_read:
|
||||
def __init__(self, f: _File) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user