Skip to content

fix Generics usage for a TypedDict's extra_items breaks type checking #4870 - #4873

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4870
Open

fix Generics usage for a TypedDict's extra_items breaks type checking #4870#4873
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4870

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #4870

Generic extra_items now uses the supplied type arguments, including legacy Generic[T] syntax.

Test Plan

add test

@meta-cla meta-cla Bot added the cla signed label Sep 9, 2026
@github-actions github-actions Bot added the size/s label Sep 9, 2026
@meta-codesync

meta-codesync Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D119339647. (Because this pull request was imported automatically, there will not be any future comments.)

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generics usage for a TypedDict's extra_items breaks type checking

2 participants