Skip to content

Commit f0fc25d

Browse files
[Storage] Fix mypy regressions for Blob, Queue, File Share (#43610)
1 parent 54b8ace commit f0fc25d

File tree

10 files changed

+46
-0
lines changed

10 files changed

+46
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ from ._quick_query_helper import BlobQueryReader
5353
from ._shared.base_client import StorageAccountHostsMixin
5454

5555
class BlobClient(StorageAccountHostsMixin, StorageEncryptionMixin):
56+
container_name: str
57+
blob_name: str
58+
snapshot: Optional[str]
59+
version_id: Optional[str]
5660
def __init__(
5761
self,
5862
account_url: str,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ class BlobClient( # type: ignore[misc]
5656
StorageAccountHostsMixin,
5757
StorageEncryptionMixin,
5858
):
59+
container_name: str
60+
blob_name: str
61+
snapshot: Optional[str]
62+
version_id: Optional[str]
5963
def __init__(
6064
self,
6165
account_url: str,

sdk/storage/azure-storage-file-share/azure/storage/fileshare/_directory_client.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ from ._models import (
3737
from ._shared.base_client import StorageAccountHostsMixin
3838

3939
class ShareDirectoryClient(StorageAccountHostsMixin):
40+
share_name: str
41+
directory_path: str
42+
snapshot: Optional[str]
43+
allow_trailing_dot: Optional[bool]
44+
allow_source_trailing_dot: Optional[bool]
45+
file_request_intent: Optional[Literal["backup"]]
4046
def __init__(
4147
self,
4248
account_url: str,

sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ from ._models import (
3838
from ._shared.base_client import StorageAccountHostsMixin
3939

4040
class ShareFileClient(StorageAccountHostsMixin):
41+
share_name: str
42+
file_name: str
43+
file_path: List[str]
44+
directory_path: str
4145
snapshot: Optional[str]
46+
allow_trailing_dot: Optional[bool]
47+
allow_source_trailing_dot: Optional[bool]
48+
file_request_intent: Optional[Literal["backup"]]
4249
def __init__(
4350
self,
4451
account_url: str,

sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ from ._models import (
2828
from ._shared.base_client import StorageAccountHostsMixin
2929

3030
class ShareClient(StorageAccountHostsMixin):
31+
share_name: str
3132
snapshot: Optional[str]
33+
allow_trailing_dot: Optional[bool]
34+
allow_source_trailing_dot: Optional[bool]
35+
file_request_intent: Optional[Literal["backup"]]
3236
def __init__(
3337
self,
3438
account_url: str,

sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_directory_client_async.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ from .._shared.base_client import StorageAccountHostsMixin
4242
from .._shared.base_client_async import AsyncStorageAccountHostsMixin
4343

4444
class ShareDirectoryClient(AsyncStorageAccountHostsMixin, StorageAccountHostsMixin): # type: ignore [misc]
45+
share_name: str
46+
directory_path: str
47+
snapshot: Optional[str]
48+
allow_trailing_dot: Optional[bool]
49+
allow_source_trailing_dot: Optional[bool]
50+
file_request_intent: Optional[Literal["backup"]]
4551
def __init__(
4652
self,
4753
account_url: str,

sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,14 @@ from .._shared.base_client import StorageAccountHostsMixin
3939
from .._shared.base_client_async import AsyncStorageAccountHostsMixin
4040

4141
class ShareFileClient(AsyncStorageAccountHostsMixin, StorageAccountHostsMixin): # type: ignore [misc]
42+
share_name: str
43+
file_name: str
44+
file_path: List[str]
45+
directory_path: str
4246
snapshot: Optional[str]
47+
allow_trailing_dot: Optional[bool]
48+
allow_source_trailing_dot: Optional[bool]
49+
file_request_intent: Optional[Literal["backup"]]
4350
def __init__(
4451
self,
4552
account_url: str,

sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ from .._shared.base_client import StorageAccountHostsMixin
3333
from .._shared.base_client_async import AsyncStorageAccountHostsMixin
3434

3535
class ShareClient(AsyncStorageAccountHostsMixin, StorageAccountHostsMixin): # type: ignore[misc]
36+
share_name: str
3637
snapshot: Optional[str]
38+
allow_trailing_dot: Optional[bool]
39+
allow_source_trailing_dot: Optional[bool]
40+
file_request_intent: Optional[Literal["backup"]]
3741
def __init__(
3842
self,
3943
account_url: str,

sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ class QueueClient(StorageAccountHostsMixin, StorageEncryptionMixin):
8989
:caption: Create the queue client with url and credential.
9090
"""
9191

92+
queue_name: str
93+
9294
def __init__(
9395
self,
9496
account_url: str,

sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ class QueueClient( # type: ignore [misc]
9999
:caption: Create the queue client with a connection string.
100100
"""
101101

102+
queue_name: str
103+
102104
def __init__(
103105
self,
104106
account_url: str,

0 commit comments

Comments
 (0)