Browse Source

Bump mypy to 1.14.0 (#1470)

Jelmer Vernooij 3 months ago
parent
commit
1c07def4be
2 changed files with 2 additions and 2 deletions
  1. 1 1
      dulwich/objects.py
  2. 1 1
      pyproject.toml

+ 1 - 1
dulwich/objects.py

@@ -536,7 +536,7 @@ class ShaFile:
         """Returns the length of the raw string of this object."""
         return sum(map(len, self.as_raw_chunks()))
 
-    def sha(self) -> "HASH":
+    def sha(self) -> Union[FixedSha, "HASH"]:
         """The SHA1 object that is the name of this object."""
         if self._sha is None or self._needs_serialization:
             # this is a local because as_raw_chunks() overwrites self._sha

+ 1 - 1
pyproject.toml

@@ -42,7 +42,7 @@ pgp = ["gpg"]
 paramiko = ["paramiko"]
 dev = [
     "ruff==0.8.4",
-    "mypy==1.13.0"
+    "mypy==1.14.0"
 ]
 
 [project.scripts]