From 9c7a44fddc3d69781eab975b2b58c2e338092116 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Tue, 3 Aug 2021 17:12:49 +0100 Subject: Fix trailing whitespace and incorrect overload --- git/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/config.py') diff --git a/git/config.py b/git/config.py index 08e9a8e4..cf32d4ba 100644 --- a/git/config.py +++ b/git/config.py @@ -710,12 +710,12 @@ class GitConfigParser(cp.RawConfigParser, metaclass=MetaParserBuilder): return self._read_only @overload - def get_value(self, section: str, option: str, default: None = None) -> str: ... + 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 + @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 -- cgit v1.2.1