Skip to content

Commit 2daa606

Browse files
Fixed BlobLeaseClient mypy errors by documenting class variables (#42634)
1 parent ac233e8 commit 2daa606

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sdk/storage/azure-storage-blob/azure/storage/blob/_lease.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ from ._blob_client import BlobClient
1414
from ._container_client import ContainerClient
1515

1616
class BlobLeaseClient:
17+
id: str
18+
etag: Optional[str]
19+
last_modified: Optional[datetime]
1720
def __init__(self, client: Union[BlobClient, ContainerClient], lease_id: Optional[str] = None) -> None: ...
1821
@distributed_trace
1922
def acquire(

sdk/storage/azure-storage-blob/azure/storage/blob/aio/_lease_async.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ from ._blob_client_async import BlobClient
1414
from ._container_client_async import ContainerClient
1515

1616
class BlobLeaseClient:
17+
id: str
18+
etag: Optional[str]
19+
last_modified: Optional[datetime]
1720
def __init__(self, client: Union[BlobClient, ContainerClient], lease_id: Optional[str] = None) -> None: ...
1821
@distributed_trace_async
1922
async def acquire(

0 commit comments

Comments
 (0)