Skip to content

Commit 0e8d46e

Browse files
committed
refactor(git/repo/base): use less strict types in is_ancestor
Changes the type hints in the is_ancestor arguments to avoid warnings from type checkers (e.g. Pylance).
1 parent da54523 commit 0e8d46e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git/repo/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ def merge_base(self, *rev: TBD, **kwargs: Any) -> List[Commit]:
824824

825825
return res
826826

827-
def is_ancestor(self, ancestor_rev: Commit, rev: Commit) -> bool:
827+
def is_ancestor(self, ancestor_rev: TBD, rev: TBD) -> bool:
828828
"""Check if a commit is an ancestor of another.
829829
830830
:param ancestor_rev:

0 commit comments

Comments
 (0)