diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-05-18 08:01:38 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-05-18 08:01:38 +0800 |
commit | e530544546b2a4e5f00e8d9458bf1b895573ec41 (patch) | |
tree | 9b957bd812fe98664d3f1f75615dda8242663097 /git/index/util.py | |
parent | f78fc42b90711c81e06699d1ebdbe69e6648b949 (diff) | |
download | gitpython-e530544546b2a4e5f00e8d9458bf1b895573ec41.tar.gz |
reformat according to 'black' configuration file.
Diffstat (limited to 'git/index/util.py')
-rw-r--r-- | git/index/util.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/git/index/util.py b/git/index/util.py index 7339b147..bfc7fadd 100644 --- a/git/index/util.py +++ b/git/index/util.py @@ -69,9 +69,7 @@ def post_clear_cache(func: Callable[..., _T]) -> Callable[..., _T]: """ @wraps(func) - def post_clear_cache_if_not_raised( - self: "IndexFile", *args: Any, **kwargs: Any - ) -> _T: + def post_clear_cache_if_not_raised(self: "IndexFile", *args: Any, **kwargs: Any) -> _T: rval = func(self, *args, **kwargs) self._delete_entries_cache() return rval @@ -90,8 +88,7 @@ def default_index(func: Callable[..., _T]) -> Callable[..., _T]: def check_default_index(self: "IndexFile", *args: Any, **kwargs: Any) -> _T: if self._file_path != self._index_path(): raise AssertionError( - "Cannot call %r on indices that do not represent the default git index" - % func.__name__ + "Cannot call %r on indices that do not represent the default git index" % func.__name__ ) return func(self, *args, **kwargs) |