Skip to content

Commit

Permalink
Import Annotated from typing_extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
brianschubert committed Nov 19, 2024
1 parent ec6dc1b commit 959c8df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test-data/unit/check-typeddict.test
Original file line number Diff line number Diff line change
Expand Up @@ -3991,6 +3991,7 @@ class TP(TypedDict):

[case testTypedDictAnnotatedWithSpecialForms]
from typing import NotRequired, ReadOnly, Required, TypedDict
from typing_extensions import Annotated

class A(TypedDict):
a: Annotated[NotRequired[ReadOnly[int]], ""] # ok
Expand Down

0 comments on commit 959c8df

Please sign in to comment.