]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bump mypy from 1.8.0 to 1.9.0 in /Tools (#117418)
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Mon, 1 Apr 2024 11:14:37 +0000 (11:14 +0000)
committerGitHub <noreply@github.com>
Mon, 1 Apr 2024 11:14:37 +0000 (11:14 +0000)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/test/libregrtest/main.py
Tools/requirements-dev.txt

index 70f723a92eb44ae447591c10e77ec86bc03188e8..3c9d9620053355ac598389bde4550d453180fd50 100644 (file)
@@ -349,9 +349,7 @@ class Regrtest:
             namespace = dict(locals())
             tracer.runctx(cmd, globals=globals(), locals=namespace)
             result = namespace['result']
-            # Mypy doesn't know about this attribute yet,
-            # but it will do soon: https://github.com/python/typeshed/pull/11091
-            result.covered_lines = list(tracer.counts)  # type: ignore[attr-defined]
+            result.covered_lines = list(tracer.counts)
         else:
             result = run_single_test(test_name, runtests)
 
index fffd2246021547e220298bc8dc73800f8370b703..61e75cf396ccb4014697f5fea246343e6969be87 100644 (file)
@@ -1,6 +1,6 @@
 # Requirements file for external linters and checks we run on
 # Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI
-mypy==1.8.0
+mypy==1.9.0
 
 # needed for peg_generator:
 types-psutil==5.9.5.20240316