Skip to content

Fix ty type errors in header tests#3249

Merged
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/ci-job-pr-3247
Jun 25, 2026
Merged

Fix ty type errors in header tests#3249
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/ci-job-pr-3247

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

The ty bump in #3247 began flagging Endpoint(headers=new_headers) in two tests, because ty widens a dict's value type to include None after a .pop(..., None) call, making it no longer assignable to Mapping[str, str]. This annotates the two affected new_headers dicts as dict[str, str] so their declared type stays fixed.

Annotate new_headers dicts as dict[str, str] so the newer ty does not
widen their value type to include None via .pop(..., None).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adamtheturtle adamtheturtle deployed to development June 25, 2026 10:24 — with GitHub Actions Active
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