Skip to content

Commit 4860c36

Browse files
authored
[configparser] Add missing default values (#14450)
1 parent 4d62c18 commit 4860c36

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stdlib/configparser.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,17 +369,17 @@ class SectionProxy(MutableMapping[str, str]):
369369
# These are partially-applied version of the methods with the same names in
370370
# RawConfigParser; the stubs should be kept updated together
371371
@overload
372-
def getint(self, option: str, *, raw: bool = ..., vars: _Section | None = ...) -> int | None: ...
372+
def getint(self, option: str, *, raw: bool = False, vars: _Section | None = None) -> int | None: ...
373373
@overload
374-
def getint(self, option: str, fallback: _T = ..., *, raw: bool = ..., vars: _Section | None = ...) -> int | _T: ...
374+
def getint(self, option: str, fallback: _T = ..., *, raw: bool = False, vars: _Section | None = None) -> int | _T: ...
375375
@overload
376-
def getfloat(self, option: str, *, raw: bool = ..., vars: _Section | None = ...) -> float | None: ...
376+
def getfloat(self, option: str, *, raw: bool = False, vars: _Section | None = None) -> float | None: ...
377377
@overload
378-
def getfloat(self, option: str, fallback: _T = ..., *, raw: bool = ..., vars: _Section | None = ...) -> float | _T: ...
378+
def getfloat(self, option: str, fallback: _T = ..., *, raw: bool = False, vars: _Section | None = None) -> float | _T: ...
379379
@overload
380-
def getboolean(self, option: str, *, raw: bool = ..., vars: _Section | None = ...) -> bool | None: ...
380+
def getboolean(self, option: str, *, raw: bool = False, vars: _Section | None = None) -> bool | None: ...
381381
@overload
382-
def getboolean(self, option: str, fallback: _T = ..., *, raw: bool = ..., vars: _Section | None = ...) -> bool | _T: ...
382+
def getboolean(self, option: str, fallback: _T = ..., *, raw: bool = False, vars: _Section | None = None) -> bool | _T: ...
383383
# SectionProxy can have arbitrary attributes when custom converters are used
384384
def __getattr__(self, key: str) -> Callable[..., Any]: ...
385385

0 commit comments

Comments
 (0)