Skip to content

Commit

Permalink
Fix mypy 'Redundant cast' (aio-libs#3927)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 1, 2019
1 parent 9f0e2b1 commit a9264ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/web_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class HTTPNetworkAuthenticationRequired(HTTPServerError):
def _initialize_default_reason() -> None:
for obj in globals().values():
if isinstance(obj, type) and issubclass(obj, HTTPException):
exc = cast(Type[HTTPException], obj)
exc = obj
if exc.status_code >= 0:
try:
status = HTTPStatus(exc.status_code)
Expand Down

0 comments on commit a9264ca

Please sign in to comment.