diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-01 10:35:11 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-01 10:35:11 +0100 |
commit | 02b8ef0f163ca353e27f6b4a8c2120444739fde5 (patch) | |
tree | 0c8bad344c8111c0081ba70ec2688318abd795dd /git/config.py | |
parent | 8fd5414697724feff782e952a42ca5d9651418bc (diff) | |
download | gitpython-02b8ef0f163ca353e27f6b4a8c2120444739fde5.tar.gz |
Add missed types to Commit, uncomment to_native_path_linux()
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/git/config.py b/git/config.py index 7982baa3..5c5ceea8 100644 --- a/git/config.py +++ b/git/config.py @@ -694,6 +694,16 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje """:return: True if this instance may change the configuration file""" return self._read_only + @overload + def get_value(self, section: str, option: str, default: str + ) -> str: + ... + + @overload + def get_value(self, section: str, option: str, default: float + ) -> float: + ... + def get_value(self, section: str, option: str, default: Union[int, float, str, bool, None] = None ) -> Union[int, float, str, bool]: # can default or return type include bool? |