-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mypy to version 0.942 / rev 28 via SR 965437
https://build.opensuse.org/request/show/965437 by user mcepl + dimstar_suse - Add 12452-stringent-err-msg.patch to make mypy work with more stringent error messages in Python >= 3.10.3 (gh#python/mypy#12451). - Update to version 0.942: - Fixes to Regressions: - Let overload item have a more general return type than the implementation (Jukka Lehtosalo, PR 12435) - Fix inheritance false positives with dataclasses/attrs (Jukka Lehtosalo, PR 12411) - Support overriding dunder attributes in Enum subclass (Petter Friberg, PR 12138) - Fix small conditional overload regression (Marc Mueller, PR 12336) - Other Fixes: - Fix issues related to the order of processing in the builtins import cycle (Jukka Lehtosalo, PR 12431) - Fix crash in match statement if class name is undefined (Jukka Lehtosalo, PR 12417) - Allow non-final __match_args__ and overriding (
- Loading branch information
1 parent
5da7df4
commit a43e42f
Showing
7 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
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,31 @@ | ||
From d7f0b6c849149c77f09e2773a667c7f1cc16ab74 Mon Sep 17 00:00:00 2001 | ||
From: Stanislav Levin <slev@altlinux.org> | ||
Date: Fri, 25 Mar 2022 17:12:47 +0300 | ||
Subject: [PATCH] testcmdline: Sync assumption about error message for Python | ||
3.10.3 | ||
|
||
Python 3.10.3 is more correct about syntax error for | ||
`mypy` test case `testBlocker`. | ||
|
||
See https://bugs.python.org/issue46240 for details. | ||
|
||
Closes #12451 | ||
|
||
Signed-off-by: Stanislav Levin <slev@altlinux.org> | ||
--- | ||
test-data/unit/cmdline.test | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
--- a/test-data/unit/cmdline.test | ||
+++ b/test-data/unit/cmdline.test | ||
@@ -1249,6 +1249,10 @@ Found 1 error in 1 file (errors prevente | ||
pkg/x.py:1: error: invalid syntax. Perhaps you forgot a comma? | ||
Found 1 error in 1 file (errors prevented further checking) | ||
== Return code: 2 | ||
+[out version>=3.10.3] | ||
+pkg/x.py:1: error: invalid syntax | ||
+Found 1 error in 1 file (errors prevented further checking) | ||
+== Return code: 2 | ||
|
||
[case testCmdlinePackageAndFile] | ||
# cmd: mypy -p pkg file |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
/ipfs/bafybeihi3nrrjmp7fsjvljx7jw5ktggscsgswj6zaucaz2kp7b6hak3bmq |
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