Skip to content
Prev Previous commit
Next Next commit
mypy
  • Loading branch information
bdraco committed Aug 23, 2024
commit f242459029a5f79287a0a22575b3ac812eb8498e
6 changes: 3 additions & 3 deletions aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def __init__(
*,
params: Optional[Mapping[str, str]] = None,
headers: Optional[LooseHeaders] = None,
skip_auto_headers: Iterable[str] = frozenset(),
skip_auto_headers: Optional[Iterable[str]] = None,
data: Any = None,
cookies: Optional[LooseCookies] = None,
auth: Optional[BasicAuth] = None,
Expand Down Expand Up @@ -381,8 +381,8 @@ def update_headers(self, headers: Optional[LooseHeaders]) -> None:
else:
self.headers.add(key, value)

def update_auto_headers(self, skip_auto_headers: Iterable[str]) -> None:
if skip_auto_headers:
def update_auto_headers(self, skip_auto_headers: Optional[Iterable[str]]) -> None:
if skip_auto_headers is not None:
self.skip_auto_headers = CIMultiDict(
(hdr, None) for hdr in sorted(skip_auto_headers)
)
Expand Down