Skip to content

Commit 2972b9e

Browse files
[Storage] Cherry Pick mypy fixes for STG 99 (#43664)
1 parent 0568271 commit 2972b9e

File tree

16 files changed

+64
-3
lines changed

16 files changed

+64
-3
lines changed

sdk/storage/azure-storage-blob/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
## 12.27.1 (2025-10-29)
4+
5+
### Bugs Fixed
6+
- Fixed MyPy `attr-defined` errors for `BlobClient`.
7+
38
## 12.27.0 (2025-10-15)
49

510
### Features Added

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/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# license information.
55
# --------------------------------------------------------------------------
66

7-
VERSION = "12.27.0"
7+
VERSION = "12.27.1"

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/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
## 12.23.1 (2025-10-29)
4+
5+
### Bugs Fixed
6+
- Fixed MyPy `attr-defined` errors for `ShareClient`, `ShareDirectoryClient`, and `ShareFileClient`.
7+
38
## 12.23.0 (2025-10-15)
49

510
### Features Added

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/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# license information.
55
# --------------------------------------------------------------------------
66

7-
VERSION = "12.23.0"
7+
VERSION = "12.23.1"

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,

0 commit comments

Comments
 (0)