_UrlopenRet is defined _UrlopenRet = Union[_HTTPResponse, addinfourl] but addinfourl has to attribute status so when checking the status of an HTTPResponse you receive error: Item "addinfourl" of "Union[HTTPResponse, addinfourl]" has no attribute "status"
https://github.com/python/cpython/blob/3.7/Lib/urllib/response.py#L68-L80
_UrlopenRetis defined_UrlopenRet = Union[_HTTPResponse, addinfourl]butaddinfourlhas to attribute status so when checking the status of an HTTPResponse you receiveerror: Item "addinfourl" of "Union[HTTPResponse, addinfourl]" has no attribute "status"https://github.com/python/cpython/blob/3.7/Lib/urllib/response.py#L68-L80