From 7766b2d92b9d79b62ac9b9b4ef81c0eef7361ec3 Mon Sep 17 00:00:00 2001 From: "David T.H. Kao" Date: Thu, 30 Apr 2020 00:54:34 -0400 Subject: [PATCH] =?UTF-8?q?Use=20IO[bytes]=20instead=20of=20BytesIO=20for?= =?UTF-8?q?=20wave=20input=20signatures=20as=20it=20is=20t=E2=80=A6=20(#39?= =?UTF-8?q?52)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- stdlib/2and3/wave.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2and3/wave.pyi b/stdlib/2and3/wave.pyi index 52bc9b156..ca76ca5e2 100644 --- a/stdlib/2and3/wave.pyi +++ b/stdlib/2and3/wave.pyi @@ -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): ...