Skip to content

Commit 3e68663

Browse files
[Storage] [Typing] [Datalake] Modified class variable types for StaticWebsite (Azure#40234)
1 parent 570f834 commit 3e68663

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 12.25.1 (Unreleased)
3+
## 12.25.1 (2025-03-27)
44

55
### Other Changes
66
- Updated dependency for `azure-storage-file-datalake` type hints.

sdk/storage/azure-storage-file-datalake/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 12.20.0 (Unreleased)
3+
## 12.20.0 (2025-03-27)
44

55
### Features Added
66
- Updated type hints across the entire package and enabled MyPy to run during CI. Some public types may have been adjusted if they were previously erroneous or incomplete.

sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_models.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,23 +1296,23 @@ class StaticWebsite(GenStaticWebsite):
12961296

12971297
enabled: bool
12981298
"""Indicates whether this account is hosting a static website. The default value is `False`."""
1299-
index_document: str
1299+
index_document: Optional[str]
13001300
"""The default name of the index page under each directory."""
1301-
error_document404_path: str
1301+
error_document404_path: Optional[str]
13021302
"""The absolute path of the custom 404 page."""
1303-
default_index_document_path: str
1303+
default_index_document_path: Optional[str]
13041304
"""Absolute path of the default index page."""
13051305

13061306
def __init__(self, **kwargs: Any) -> None:
13071307
self.enabled = kwargs.get('enabled', False)
13081308
if self.enabled:
1309-
self.index_document = kwargs.get('index_document') # type: ignore [assignment]
1310-
self.error_document404_path = kwargs.get('error_document404_path') # type: ignore [assignment]
1311-
self.default_index_document_path = kwargs.get('default_index_document_path') # type: ignore [assignment]
1309+
self.index_document = kwargs.get('index_document')
1310+
self.error_document404_path = kwargs.get('error_document404_path')
1311+
self.default_index_document_path = kwargs.get('default_index_document_path')
13121312
else:
1313-
self.index_document = None # type: ignore [assignment]
1314-
self.error_document404_path = None # type: ignore [assignment]
1315-
self.default_index_document_path = None # type: ignore [assignment]
1313+
self.index_document = None
1314+
self.error_document404_path = None
1315+
self.default_index_document_path = None
13161316

13171317
@classmethod
13181318
def _from_generated(cls, generated):

0 commit comments

Comments
 (0)