Skip to content

Commit 1dd6ab1

Browse files
Conformance tests: Allow mypy error on typeddicts_alt_syntax.py (#1689)
1 parent b752e31 commit 1dd6ab1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

conformance/results/mypy/typeddicts_alt_syntax.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ typeddicts_alt_syntax.py:41: error: Unexpected arguments to TypedDict() [misc]
1111
typeddicts_alt_syntax.py:44: error: Extra keys ("name", "year") for TypedDict "Movie2" [typeddict-unknown-key]
1212
typeddicts_alt_syntax.py:45: error: Extra keys ("name", "year") for TypedDict "Movie2" [typeddict-unknown-key]
1313
"""
14-
conformance_automated = "Fail"
14+
conformance_automated = "Pass"
1515
errors_diff = """
16-
Line 44: Unexpected errors ['typeddicts_alt_syntax.py:44: error: Extra keys ("name", "year") for TypedDict "Movie2" [typeddict-unknown-key]']
1716
"""

conformance/tests/typeddicts_alt_syntax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
Movie2 = TypedDict("Movie2", name=str, year=int) # E?
4242

4343
movie2: Movie2
44-
movie2 = {"name": "Blade Runner", "year": 1982}
44+
movie2 = {"name": "Blade Runner", "year": 1982} # E?: May generate errors if keyword-argument syntax is unsupported
4545
movie2 = {"name": "Blade Runner", "year": ""} # E: Incorrect type for year

0 commit comments

Comments
 (0)