Skip to content

Commit ac4fe6e

Browse files
committed
Fixes type check for is_valid_object
1 parent 385a8c6 commit ac4fe6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/repo/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ def is_ancestor(self, ancestor_rev: 'Commit', rev: 'Commit') -> bool:
620620
raise
621621
return True
622622

623-
def is_valid_object(self, sha: str, object_type: Union['blob', 'commit', 'tree', 'tag'] = None) -> bool:
623+
def is_valid_object(self, sha: str, object_type: str = None) -> bool:
624624
try:
625625
complete_sha = self.odb.partial_to_complete_sha_hex(sha)
626626
object_info = self.odb.info(complete_sha)

0 commit comments

Comments
 (0)