Pin mypy passing on loop_claude at the Python floor

This commit is contained in:
2026-09-29 15:46:09 +02:00
parent 89a66d37a0
commit 099e9e19a5
2 changed files with 23 additions and 3 deletions
+16
View File
@@ -0,0 +1,16 @@
import shutil
import subprocess
import unittest
from test_python_floor import ROOT, readme_floor
class Types(unittest.TestCase):
def test_mypy_passes_on_loop_claude_at_the_floor(self):
floor = readme_floor()
self.assertIsNotNone(floor, "README.md's Install names `Python 3.N or newer`")
if shutil.which("uv") is None:
self.fail("uv on PATH fetches mypy; see README.md's Test line")
version = "%d.%d" % floor
ran = subprocess.run(["uv", "tool", "run", "--python", version, "mypy==2.3.1", "--check-untyped-defs", "--python-version", version, "-p", "loop_claude"], capture_output=True, cwd=ROOT / "bin", text=True)
self.assertEqual(ran.returncode, 0, ran.stdout + ran.stderr)