Skip to content

Commit

Permalink
Remove unnecessary generator expression to generate the connection key
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Sep 30, 2024
1 parent 5762ed6 commit a9c0128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def ssl(self) -> Union["SSLContext", bool, Fingerprint]:
def connection_key(self) -> ConnectionKey:
proxy_headers = self.proxy_headers
if proxy_headers:
h: Optional[int] = hash(tuple((k, v) for k, v in proxy_headers.items()))
h: Optional[int] = hash(tuple(proxy_headers.items()))
else:
h = None
return ConnectionKey(
Expand Down

0 comments on commit a9c0128

Please sign in to comment.