diff options
author | Robert Westman <robert@byteflux.io> | 2021-06-05 12:22:24 +0200 |
---|---|---|
committer | Robert Westman <robert@byteflux.io> | 2021-06-05 12:22:24 +0200 |
commit | ac4fe6efbccc2ad5c2044bf36e34019363018630 (patch) | |
tree | ca3011d0bbd7ace90649f16c6e6d3afa1d60b9ef | |
parent | 385a8c6c1a72dc34f69c5273c1b4c1285cc1d3c5 (diff) | |
download | gitpython-ac4fe6efbccc2ad5c2044bf36e34019363018630.tar.gz |
Fixes type check for is_valid_object
-rw-r--r-- | git/repo/base.py | 2 |
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) |