diff options
author | Dominic <yobmod@gmail.com> | 2021-09-09 19:49:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-09 19:49:13 +0100 |
commit | cfcae1d839c5dbb94745c504993c9d5baebc44b5 (patch) | |
tree | 2227e4e6931ad38e1a3c5a2c48cecbf5d57e5f01 /git/config.py | |
parent | 5da76e8b4466459a3b6a400c4750a622879acce8 (diff) | |
parent | bb9b50ff2671cda598ff19653d3de49e03b6d163 (diff) | |
download | gitpython-cfcae1d839c5dbb94745c504993c9d5baebc44b5.tar.gz |
Merge pull request #1318 from Yobmod/main
General fixes for next release
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/git/config.py b/git/config.py index cf32d4ba..cbd66022 100644 --- a/git/config.py +++ b/git/config.py @@ -31,7 +31,7 @@ import configparser as cp # typing------------------------------------------------------- from typing import (Any, Callable, Generic, IO, List, Dict, Sequence, - TYPE_CHECKING, Tuple, TypeVar, Union, cast, overload) + TYPE_CHECKING, Tuple, TypeVar, Union, cast) from git.types import Lit_config_levels, ConfigLevels_Tup, PathLike, assert_never, _T @@ -709,15 +709,6 @@ class GitConfigParser(cp.RawConfigParser, metaclass=MetaParserBuilder): """:return: True if this instance may change the configuration file""" return self._read_only - @overload - def get_value(self, section: str, option: str, default: None = None) -> Union[int, float, str, bool]: ... - - @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? |