Skip to content

Missing update method on the CaseInsensitiveDict #7632

Closed
@Fokko

Description

@Fokko

We got mypy errors after the release 6 hours ago:

communication/slack/tasks.py:39: error: "CaseInsensitiveDict?[builtins.str]" has no attribute "update"

This is when we do (simplified):

session = requests.Session()
session.headers.update({"Authorization": f"Bearer {access_token}"})

Also part of the docs: https://docs.python-requests.org/en/master/user/advanced/

I think the CaseInsensitiveDict should also contain the .update() method. Will open a PR in a second.

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