From 0e8d46e3ab3f67fb8f78e31131e103204550e4e5 Mon Sep 17 00:00:00 2001 From: comeillfoo Date: Wed, 22 Apr 2026 01:34:54 +0500 Subject: [PATCH] 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). --- git/repo/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/repo/base.py b/git/repo/base.py index 96c78df56..67ccb12ba 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -824,7 +824,7 @@ def merge_base(self, *rev: TBD, **kwargs: Any) -> List[Commit]: return res - def is_ancestor(self, ancestor_rev: Commit, rev: Commit) -> bool: + def is_ancestor(self, ancestor_rev: TBD, rev: TBD) -> bool: """Check if a commit is an ancestor of another. :param ancestor_rev: