mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use IO[bytes] instead of BytesIO for wave input signatures as it is t… (#3952)
* Use IO[bytes] instead of BytesIO for wave input signatures as it is the (slightly) more general type. * add missing import Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
import sys
|
||||
from typing import (
|
||||
Any, NamedTuple, NoReturn, Optional, Text, BinaryIO, Union, Tuple
|
||||
Any, NamedTuple, NoReturn, Optional, Text, BinaryIO, Union, Tuple, IO
|
||||
)
|
||||
|
||||
_File = Union[Text, BinaryIO]
|
||||
_File = Union[Text, IO[bytes]]
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user