diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-31 19:00:23 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-31 19:00:23 +0100 |
commit | 476f4de6aa893bc0289c345a7d06b85256ab98bc (patch) | |
tree | 2f0fd2f5603a1465ad615adf76bd78a2154978b8 /git/config.py | |
parent | d6e736922cb69cc87dd6595ef93f247ce99a960a (diff) | |
download | gitpython-476f4de6aa893bc0289c345a7d06b85256ab98bc.tar.gz |
Add set_dirty_and_flush_changes() types to config.py
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/config.py b/git/config.py index a3f41c60..011d0e0b 100644 --- a/git/config.py +++ b/git/config.py @@ -102,7 +102,7 @@ def needs_values(func: Callable[..., _T]) -> Callable[..., _T]: """Returns method assuring we read values (on demand) before we try to access them""" @wraps(func) - def assure_data_present(self: GitConfigParser, *args: Any, **kwargs: Any) -> _T: + def assure_data_present(self: 'GitConfigParser', *args: Any, **kwargs: Any) -> _T: self.read() return func(self, *args, **kwargs) # END wrapper method @@ -114,7 +114,7 @@ def set_dirty_and_flush_changes(non_const_func: Callable[..., _T]) -> Callable[. If so, the instance will be set dirty. Additionally, we flush the changes right to disk""" - def flush_changes(self: GitConfigParser, *args: Any, **kwargs: Any) -> _T: + def flush_changes(self: 'GitConfigParser', *args: Any, **kwargs: Any) -> _T: rval = non_const_func(self, *args, **kwargs) self._dirty = True self.write() |