Skip to content

Commit

Permalink
Fix black and type checking issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JWCook committed Jan 1, 2022
1 parent 3d5f55d commit 28f368a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions requests_cache/cache_keys.py
Expand Up @@ -81,8 +81,9 @@ def get_matched_headers(
else:
included = set(headers) - DEFAULT_EXCLUDE_HEADERS

included = sorted(included, key=lambda x:x.lower())
return [f'{k.lower()}={headers[k]}' for k in included if k in headers]
return [
f'{k.lower()}={headers[k]}' for k in sorted(included, key=lambda x: x.lower()) if k in headers
]


def normalize_request(request: AnyRequest, ignored_parameters: ParamList) -> AnyPreparedRequest:
Expand Down

0 comments on commit 28f368a

Please sign in to comment.