Skip to content

_UrlopenRet gives error that addinfourl has no attribute status #3026

@ThrowsException

Description

@ThrowsException

_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions