Skip to content

Commit

Permalink
Drop dead code, float timeout support was removed (#6328)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov authored Nov 20, 2021
1 parent d149eff commit 597917e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,7 @@ async def _request(
if timeout is sentinel:
real_timeout = self._timeout # type: ClientTimeout
else:
if not isinstance(timeout, ClientTimeout):
real_timeout = ClientTimeout(total=timeout) # type: ignore[arg-type]
else:
real_timeout = timeout
real_timeout = timeout # type: ignore[assignment]
# timeout is cumulative for all request operations
# (request, redirects, responses, data consuming)
tm = TimeoutHandle(self._loop, real_timeout.total)
Expand Down

0 comments on commit 597917e

Please sign in to comment.