Skip to content

Commit d3d7e3e

Browse files
authored
Fix type annotation in azure.storage.blob (Azure#20084)
* Fix type annotation for get_api_version * Fix type annotation in _get_match_headers
1 parent e9bc674 commit d3d7e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646
def _get_match_headers(kwargs, match_param, etag_param):
47-
# type: (str) -> Tuple(Dict[str, Any], Optional[str], Optional[str])
47+
# type: (Dict[str, Any], str, str) -> Tuple(Dict[str, Any], Optional[str], Optional[str])
4848
if_match = None
4949
if_none_match = None
5050
match_condition = kwargs.pop(match_param, None)
@@ -127,7 +127,7 @@ def get_container_cpk_scope_info(kwargs):
127127

128128

129129
def get_api_version(kwargs, default):
130-
# type: (Dict[str, Any]) -> str
130+
# type: (Dict[str, Any], str) -> str
131131
api_version = kwargs.pop('api_version', None)
132132
if api_version and api_version not in _SUPPORTED_API_VERSIONS:
133133
versions = '\n'.join(_SUPPORTED_API_VERSIONS)

0 commit comments

Comments
 (0)