Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conformance tests: Allow mypy error on typeddicts_alt_syntax.py #1689

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions conformance/results/mypy/typeddicts_alt_syntax.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ typeddicts_alt_syntax.py:41: error: Unexpected arguments to TypedDict() [misc]
typeddicts_alt_syntax.py:44: error: Extra keys ("name", "year") for TypedDict "Movie2" [typeddict-unknown-key]
typeddicts_alt_syntax.py:45: error: Extra keys ("name", "year") for TypedDict "Movie2" [typeddict-unknown-key]
"""
conformance_automated = "Fail"
conformance_automated = "Pass"
errors_diff = """
Line 44: Unexpected errors ['typeddicts_alt_syntax.py:44: error: Extra keys ("name", "year") for TypedDict "Movie2" [typeddict-unknown-key]']
"""
2 changes: 1 addition & 1 deletion conformance/tests/typeddicts_alt_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
Movie2 = TypedDict("Movie2", name=str, year=int) # E?

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