Skip to content

Commit

Permalink
Fix type annotation for read function.
Browse files Browse the repository at this point in the history
  • Loading branch information
florianziemen committed Nov 14, 2024
1 parent ff06e9d commit 0a737a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions slkspec/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from typing import (
IO,
Any,
AnyStr,
Dict,
List,
Literal,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0a737a9

Please sign in to comment.