瀏覽代碼

Fix typing

Jelmer Vernooij 2 月之前
父節點
當前提交
2163199007
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      dulwich/porcelain.py

+ 3 - 1
dulwich/porcelain.py

@@ -1193,7 +1193,9 @@ def reset(repo, mode, treeish="HEAD") -> None:
             symlink_fn = symlink
         else:
 
-            def symlink_fn(source, target) -> None:
+            def symlink_fn(  # type: ignore
+                source, target, target_is_directory=False, *, dir_fd=None
+            ) -> None:
                 mode = "w" + ("b" if isinstance(source, bytes) else "")
                 with open(target, mode) as f:
                     f.write(source)