Skip to content

Commit

Permalink
Fix type annotation in azure.storage.blob (#20084)
Browse files Browse the repository at this point in the history
* Fix type annotation for get_api_version

* Fix type annotation in _get_match_headers
  • Loading branch information
rnestler authored and iscai-msft committed Sep 29, 2021
1 parent ccde3a7 commit cbf47ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cbf47ea

Please sign in to comment.