-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working
Description
Describe the bug
I created a generic TypedDict which should have extra_items=T of the same type, however the sub scripted type is not resolved and is rather T@TD.
Code or Screenshots
Code sample in pyright playground
from typing_extensions import TypedDict
class TD[T](TypedDict, extra_items=T):
a: T
d1: TD = {"a":1}
d2: TD[int] = {"a":1}
reveal_type(d1["other"]) # T@TD # expected Unknown
reveal_type(d2["other"]) # T@TD # expected intVS Code extension or command-line
1.1.401
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working