From 4b1fede5eebc27eb29978f0967ffb84afa9ae9ea Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Wed, 4 Aug 2021 15:16:39 +0200 Subject: [PATCH 1/2] Fix type annotation for get_api_version --- sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py index a200118d2418..d68d2afeec9a 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py @@ -127,7 +127,7 @@ def get_container_cpk_scope_info(kwargs): def get_api_version(kwargs, default): - # type: (Dict[str, Any]) -> str + # type: (Dict[str, Any], str) -> str api_version = kwargs.pop('api_version', None) if api_version and api_version not in _SUPPORTED_API_VERSIONS: versions = '\n'.join(_SUPPORTED_API_VERSIONS) From f070769ea54af6538fcdbb90b100ea9b3e0c5e8c Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Wed, 4 Aug 2021 15:22:56 +0200 Subject: [PATCH 2/2] Fix type annotation in _get_match_headers --- sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py index d68d2afeec9a..701a88ae408e 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_serialize.py @@ -44,7 +44,7 @@ def _get_match_headers(kwargs, match_param, etag_param): - # type: (str) -> Tuple(Dict[str, Any], Optional[str], Optional[str]) + # type: (Dict[str, Any], str, str) -> Tuple(Dict[str, Any], Optional[str], Optional[str]) if_match = None if_none_match = None match_condition = kwargs.pop(match_param, None)