Browse Source

Install specific mypy version

Jelmer Vernooij 5 months ago
parent
commit
e5c7be56cc
3 changed files with 4 additions and 3 deletions
  1. 1 1
      .github/workflows/pythontest.yml
  2. 1 1
      dulwich/refs.py
  3. 2 1
      pyproject.toml

+ 1 - 1
.github/workflows/pythontest.yml

@@ -43,7 +43,7 @@ jobs:
           python -m ruff format --check .
       - name: Typing checks
         run: |
-          pip install --upgrade mypy types-paramiko types-requests
+          pip install --upgrade types-paramiko types-requests
           python -m mypy dulwich
         if: "matrix.python-version != 'pypy3'"
       - name: Build

+ 1 - 1
dulwich/refs.py

@@ -24,7 +24,7 @@
 import os
 import warnings
 from contextlib import suppress
-from typing import Any, Dict, Optional, Set, List, Tuple
+from typing import Any, Dict, List, Optional, Set, Tuple
 
 from .errors import PackedRefsException, RefFormatError
 from .file import GitFile, ensure_dir_exists

+ 2 - 1
pyproject.toml

@@ -42,7 +42,8 @@ https = ["urllib3>=1.24.1"]
 pgp = ["gpg"]
 paramiko = ["paramiko"]
 dev = [
-    "ruff==0.6.9"
+    "ruff==0.6.9",
+    "mypy==1.12.0"
 ]
 
 [project.scripts]