Skip to content

requests.packages missing in types-requests 2.27.5 #6893

@wpwood

Description

@wpwood

When moving from types-requests 2.26.3 to 2.27.5, the following code

requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning)

now gets a type error in mypy, error: Module has no attribute "packages"

I was able to fix the issuing by forcing mypy to use types-requests 2.26.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions