Jelmer Vernooij hace 2 años
padre
commit
da98c5a416
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      dulwich/client.py

+ 2 - 2
dulwich/client.py

@@ -47,7 +47,7 @@ import shlex
 import socket
 import subprocess
 import sys
-from typing import Any, Callable, Dict, List, Optional, Set, Tuple
+from typing import Any, Callable, Dict, List, Optional, Set, Tuple, IO
 
 from urllib.parse import (
     quote as urlquote,
@@ -680,7 +680,7 @@ class GitClient(object):
             # TODO(jelmer): Avoid reading entire file into memory and
             # only processing it after the whole file has been fetched.
             from tempfile import SpooledTemporaryFile
-            f = SpooledTemporaryFile()
+            f = SpooledTemporaryFile()  # type: IO[bytes]
 
             def commit():
                 if f.tell():