Skip to content

Overload Headers.get like the mapping types - #94

Closed
tiran wants to merge 0 commit into
mainfrom
headers-get-overloads
Closed

tiran wants to merge 0 commit into
mainfrom
headers-get-overloads

Conversation

@tiran

@tiran tiran commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

get(key) returns str | None and get(key, default) returns str, as in typeshed's Mapping.get. The standard header mappings now verify against the protocol, so the backends drop their type: ignore comments.

@tiran
tiran force-pushed the headers-get-overloads branch 2 times, most recently from c9014d5 to 8a9f1cd Compare November 16, 2026 12:07
@tiran tiran closed this Nov 16, 2026
@tiran
tiran force-pushed the headers-get-overloads branch from 8a9f1cd to 6fb0729 Compare November 16, 2026 12:12
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