forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mypy: get CI green for py39 (python#9376)
Due to Python 3.9's new parser, this has a different (and better) error message on Python 3.9. This is effectively a test of typed_ast / ast, so I don't think it matters too much. I'm happy to alternatively just get rid of the test altogether, or if people feel strongly, come up with a way to run the test when run with older Pythons. Co-authored-by: hauntsaninja <>
- Loading branch information
1 parent
6e25daa
commit 13ae58f
Showing
4 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[case testGivingSameKeywordArgumentTwice] | ||
# This test was originally in check-kwargs.test | ||
# Python 3.9's new parser started producing a different error message here. Since this isn't the | ||
# most important test, to deal with this we'll only run this test with Python 3.9 and later. | ||
import typing | ||
def f(a: 'A', b: 'B') -> None: pass | ||
f(a=A(), b=B(), a=A()) # E: "f" gets multiple values for keyword argument "a" | ||
class A: pass | ||
class B: pass |