From 0a737a983eb5159c264a8dcffd7f50953915a8b9 Mon Sep 17 00:00:00 2001 From: Florian Ziemen Date: Thu, 14 Nov 2024 14:48:26 +0100 Subject: [PATCH] Fix type annotation for read function. --- slkspec/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/slkspec/core.py b/slkspec/core.py index 9bf76ee..8d29a2f 100644 --- a/slkspec/core.py +++ b/slkspec/core.py @@ -12,7 +12,6 @@ from typing import ( IO, Any, - AnyStr, Dict, List, Literal, @@ -226,7 +225,7 @@ def seekable() -> Literal[True]: """Compatibility method.""" return True - def read(self, size: int = -1) -> AnyStr: + def read(self, size: int = -1) -> Any: """The the content of a file-stream. size: int, default: -1