Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ac4fe6e

Browse files
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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /