Skip to content

Fix mypy errors in reauthenticate() and run lint on dependency bumps - #1010

Merged
LeMyst merged 1 commit into
masterfrom
fix-mypy-login-headers
Jul 27, 2026
Merged

Fix mypy errors in reauthenticate() and run lint on dependency bumps#1010
LeMyst merged 1 commit into
masterfrom
fix-mypy-login-headers

Conversation

@LeMyst

@LeMyst LeMyst commented Jul 27, 2026

Copy link
Copy Markdown
Owner

The mypy 2.3.0 bump (#1006) introduced two errors in wbi_login.py: session.headers.get() returns str | bytes, which is incompatible with the dict[str, str] expected by _perform_login(). Guard the value with an isinstance check before building the headers.

The errors went unnoticed because python-lint.yaml only triggers on **.py changes: dependency bumps that touch pyproject.toml/poetry.lock merged without running the linters. Add both files to the workflow paths, matching python-pytest.yaml.

Also bump actions/setup-python to v7.0.0 in the lint workflow.

The mypy 2.3.0 bump (#1006) introduced two errors in wbi_login.py:
session.headers.get() returns str | bytes, which is incompatible with
the dict[str, str] expected by _perform_login(). Guard the value with
an isinstance check before building the headers.

The errors went unnoticed because python-lint.yaml only triggers on
**.py changes: dependency bumps that touch pyproject.toml/poetry.lock
merged without running the linters. Add both files to the workflow
paths, matching python-pytest.yaml.

Also bump actions/setup-python to v7.0.0 in the lint workflow.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@LeMyst
LeMyst merged commit 98270b5 into master Jul 27, 2026
15 checks passed
@LeMyst
LeMyst deleted the fix-mypy-login-headers branch July 27, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant