summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Westman <robert@byteflux.io>2021-06-05 12:22:24 +0200
committerRobert Westman <robert@byteflux.io>2021-06-05 12:22:24 +0200
commitac4fe6efbccc2ad5c2044bf36e34019363018630 (patch)
treeca3011d0bbd7ace90649f16c6e6d3afa1d60b9ef
parent385a8c6c1a72dc34f69c5273c1b4c1285cc1d3c5 (diff)
downloadgitpython-ac4fe6efbccc2ad5c2044bf36e34019363018630.tar.gz
Fixes type check for is_valid_object
-rw-r--r--git/repo/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index e7b1274b..b19503ee 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -620,7 +620,7 @@ class Repo(object):
raise
return True
- def is_valid_object(self, sha: str, object_type: Union['blob', 'commit', 'tree', 'tag'] = None) -> bool:
+ def is_valid_object(self, sha: str, object_type: str = None) -> bool:
try:
complete_sha = self.odb.partial_to_complete_sha_hex(sha)
object_info = self.odb.info(complete_sha)