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:
David T.H. Kao
2020-04-30 00:54:34 -04:00
committed by GitHub
parent 88440b768c
commit 7766b2d92b

View File

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