From a48ce5aedefdc0fccef668da1005710d0544e8ad Mon Sep 17 00:00:00 2001 From: Nico Lehmann Date: Thu, 26 Oct 2023 22:05:18 -0700 Subject: [PATCH] Explicitly provide Any for IO generic argument --- pypdf/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypdf/_utils.py b/pypdf/_utils.py index b9493439c..684d46616 100644 --- a/pypdf/_utils.py +++ b/pypdf/_utils.py @@ -70,7 +70,7 @@ float, float, float, float, float, float ] -StreamType = IO +StreamType = IO[Any] StrByteType = Union[str, StreamType] DEPR_MSG_NO_REPLACEMENT = "{} is deprecated and will be removed in pypdf {}."