Parcourir la source

Fix type issues

Jelmer Vernooij il y a 4 semaines
Parent
commit
ec71f14f89
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      dulwich/client.py
  2. 1 1
      dulwich/diff_tree.py

+ 1 - 1
dulwich/client.py

@@ -1699,7 +1699,7 @@ class SubprocessGitClient(TraditionalGitClient):
     def from_parsedurl(cls, parsedurl, **kwargs):
         return cls(**kwargs)
 
-    git_command = None
+    git_command: Optional[str] = None
 
     def _connect(
         self,

+ 1 - 1
dulwich/diff_tree.py

@@ -46,7 +46,7 @@ _NULL_ENTRY = TreeEntry(None, None, None)
 _MAX_SCORE = 100
 RENAME_THRESHOLD = 60
 MAX_FILES = 200
-REWRITE_THRESHOLD = None
+REWRITE_THRESHOLD: Optional[int] = None
 
 
 class TreeChange(namedtuple("TreeChange", ["type", "old", "new"])):