Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9c7a44f

Browse files
Fix trailing whitespace and incorrect overload
1 parent 0b89bfe commit 9c7a44f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/config.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,12 +710,12 @@ def read_only(self) -> bool:
710710
return self._read_only
711711

712712
@overload
713-
def get_value(self, section: str, option: str, default: None = None) -> str: ...
713+
def get_value(self, section: str, option: str, default: None = None) -> Union[int, float, str, bool]: ...
714714

715715
@overload
716716
def get_value(self, section: str, option: str, default: str) -> str: ...
717717

718-
@overload
718+
@overload
719719
def get_value(self, section: str, option: str, default: float) -> float: ...
720720

721721
def get_value(self, section: str, option: str, default: Union[int, float, str, bool, None] = None

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /