Jelmer Vernooij 4 年 前
コミット
0b30a8024a
1 ファイル変更5 行追加1 行削除
  1. 5 1
      dulwich/objectspec.py

+ 5 - 1
dulwich/objectspec.py

@@ -20,6 +20,8 @@
 
 """Object specification."""
 
+from typing import Union, List, Tuple
+
 
 def to_bytes(text):
     if getattr(text, "encode", None) is not None:
@@ -119,7 +121,9 @@ def parse_reftuple(lh_container, rh_container, refspec, force=False):
 
 
 def parse_reftuples(
-        lh_container, rh_container, refspecs, force=False):
+        lh_container, rh_container,
+        refspecs: Union[bytes, List[bytes], List[Tuple[bytes, bytes]]],
+        force: bool = False):
     """Parse a list of reftuple specs to a list of reftuples.
 
     Args: