[med-svn] [Git][python-team/packages/mypy][upstream] New upstream version 1.10.1
Michael R. Crusoe (@crusoe)
gitlab at salsa.debian.org
Tue Jun 25 02:19:03 BST 2024
Michael R. Crusoe pushed to branch upstream at Debian Python Team / packages / mypy
Commits:
6534d9db by Michael R. Crusoe at 2024-06-25T03:15:48+02:00
New upstream version 1.10.1
- - - - -
6 changed files:
- PKG-INFO
- mypy.egg-info/PKG-INFO
- mypy/build.py
- mypy/errors.py
- mypy/version.py
- test-data/unit/check-incremental.test
Changes:
=====================================
PKG-INFO
=====================================
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: mypy
-Version: 1.10.0
+Version: 1.10.1
Summary: Optional static typing for Python
Home-page: https://www.mypy-lang.org/
Author: Jukka Lehtosalo
=====================================
mypy.egg-info/PKG-INFO
=====================================
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: mypy
-Version: 1.10.0
+Version: 1.10.1
Summary: Optional static typing for Python
Home-page: https://www.mypy-lang.org/
Author: Jukka Lehtosalo
=====================================
mypy/build.py
=====================================
@@ -3459,11 +3459,12 @@ def process_stale_scc(graph: Graph, scc: list[str], manager: BuildManager) -> No
for id in stale:
graph[id].transitive_error = True
for id in stale:
- manager.flush_errors(
- manager.errors.simplify_path(graph[id].xpath),
- manager.errors.file_messages(graph[id].xpath),
- False,
- )
+ if graph[id].xpath not in manager.errors.ignored_files:
+ manager.flush_errors(
+ manager.errors.simplify_path(graph[id].xpath),
+ manager.errors.file_messages(graph[id].xpath),
+ False,
+ )
graph[id].write_cache()
graph[id].mark_as_rechecked()
=====================================
mypy/errors.py
=====================================
@@ -802,7 +802,7 @@ class Errors:
def is_errors_for_file(self, file: str) -> bool:
"""Are there any errors for the given file?"""
- return file in self.error_info_map
+ return file in self.error_info_map and file not in self.ignored_files
def prefer_simple_messages(self) -> bool:
"""Should we generate simple/fast error messages?
=====================================
mypy/version.py
=====================================
@@ -8,7 +8,7 @@ from mypy import git
# - Release versions have the form "1.2.3".
# - Dev versions have the form "1.2.3+dev" (PLUS sign to conform to PEP 440).
# - Before 1.0 we had the form "0.NNN".
-__version__ = "1.10.0"
+__version__ = "1.10.1"
base_version = __version__
mypy_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
=====================================
test-data/unit/check-incremental.test
=====================================
@@ -1833,6 +1833,21 @@ main:3: note: Revealed type is "builtins.int"
main:3: note: Revealed type is "Any"
+[case testIncrementalIgnoreErrors]
+# flags: --config-file tmp/mypy.ini
+import a
+[file a.py]
+import module_that_will_be_deleted
+[file module_that_will_be_deleted.py]
+
+[file mypy.ini]
+\[mypy]
+\[mypy-a]
+ignore_errors = True
+[delete module_that_will_be_deleted.py.2]
+[out1]
+[out2]
+
[case testIncrementalNamedTupleInMethod]
from ntcrash import nope
[file ntcrash.py]
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/commit/6534d9db1551344937092633884c1ccb26ca3def
--
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/commit/6534d9db1551344937092633884c1ccb26ca3def
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240625/5a9e5f45/attachment-0001.htm>
More information about the debian-med-commit
mailing list