From 827a5fb1d9d8e7a189c0a33d3a84d5f6803e6b25 Mon Sep 17 00:00:00 2001 From: vincenttran-msft <101599632+vincenttran-msft@users.noreply.github.com> Date: Thu, 11 Jul 2024 16:51:28 -0700 Subject: [PATCH] Change back from str to T to appease MyPy, will always resolve correctly (#36445) --- sdk/storage/azure-storage-blob/azure/storage/blob/_download.py | 2 +- .../azure/storage/blob/aio/_download_async.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py index 0519e3325e5d..05b949653914 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py @@ -582,7 +582,7 @@ def read(self, size: int = -1) -> T: ... @overload - def read(self, *, chars: Optional[int] = None) -> str: + def read(self, *, chars: Optional[int] = None) -> T: ... # pylint: disable-next=too-many-statements,too-many-branches diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py index 6b3b0e49c4a6..6e65a8da8768 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py @@ -468,7 +468,7 @@ def read(self, size: int = -1) -> T: ... @overload - def read(self, *, chars: Optional[int] = None) -> str: + def read(self, *, chars: Optional[int] = None) -> T: ... # pylint: disable-next=too-many-statements,too-many-branches