diff --git a/conformance/results/ty/typeddicts_extra_items.toml b/conformance/results/ty/typeddicts_extra_items.toml index 96a52278..6cf6df4d 100644 --- a/conformance/results/ty/typeddicts_extra_items.toml +++ b/conformance/results/ty/typeddicts_extra_items.toml @@ -5,7 +5,6 @@ Line 49: Expected 1 errors Line 67: Expected 1 errors Line 73: Expected 1 errors Line 109: Expected 1 errors -Line 143: Expected 1 errors Line 174: Expected 1 errors Line 215: Expected 1 errors Line 222: Expected 1 errors diff --git a/conformance/tests/typeddicts_extra_items.py b/conformance/tests/typeddicts_extra_items.py index 1408115d..20354bb8 100644 --- a/conformance/tests/typeddicts_extra_items.py +++ b/conformance/tests/typeddicts_extra_items.py @@ -140,7 +140,7 @@ class MovieExtra(TypedDict, extra_items=int): def unpack_no_extra(**kwargs: Unpack[MovieNoExtra]) -> None: ... def unpack_extra(**kwargs: Unpack[MovieExtra]) -> None: ... -unpack_no_extra(name="No Country for Old Men", year=2007) # E: Unrecognized item +unpack_no_extra(name="No Country for Old Men", year=2007) # E?: Unrecognized item unpack_extra(name="No Country for Old Men", year=2007) # OK # > Notably, if the TypedDict type specifies ``extra_items`` to be read-only,