Skip to content

Improve __(r)or__ signatures for TypedDict classes - #10565

Merged
AlexWaygood merged 4 commits into
python:mainfrom
AlexWaygood:typeddict-or
Aug 12, 2023
Merged

AlexWaygood merged 4 commits into
python:mainfrom
AlexWaygood:typeddict-or

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

This isn't what was asked for in python/typing#1445, but it seems worth doing anyway. I can't see a reason why it shouldn't be type-safe.

@github-actions

This comment has been minimized.

Comment thread tests/stubtest_allowlists/py311.txt Resolved
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood
AlexWaygood merged commit df08fce into python:main Aug 12, 2023
@AlexWaygood
AlexWaygood deleted the typeddict-or branch August 12, 2023 17:32
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.

2 participants