Skip to content

Commit 827a5fb

Browse files
Change back from str to T to appease MyPy, will always resolve correctly (#36445)
1 parent 5a48f60 commit 827a5fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/storage/azure-storage-blob/azure/storage/blob/_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def read(self, size: int = -1) -> T:
582582
...
583583

584584
@overload
585-
def read(self, *, chars: Optional[int] = None) -> str:
585+
def read(self, *, chars: Optional[int] = None) -> T:
586586
...
587587

588588
# pylint: disable-next=too-many-statements,too-many-branches

sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def read(self, size: int = -1) -> T:
468468
...
469469

470470
@overload
471-
def read(self, *, chars: Optional[int] = None) -> str:
471+
def read(self, *, chars: Optional[int] = None) -> T:
472472
...
473473

474474
# pylint: disable-next=too-many-statements,too-many-branches

0 commit comments

Comments
 (0)