Fix type hint on create_tag · gitpython-developers/GitPython@ae6a6e4

Original file line numberDiff line numberDiff line change

@@ -482,7 +482,7 @@ def delete_head(self, *heads: "Union[str, Head]", **kwargs: Any) -> None:

482482

def create_tag(

483483

self,

484484

path: PathLike,

485-

ref: str = "HEAD",

485+

ref: Union[str, 'SymbolicReference'] = "HEAD",

486486

message: Optional[str] = None,

487487

force: bool = False,

488488

**kwargs: Any,