@@ -100,6 +100,8 @@ class RawConfigParser(_parser):
100
100
def read_dict (self , dictionary : Mapping [str , Mapping [str , Any ]],
101
101
source : str = ...) -> None : ...
102
102
103
+ # These get* methods are partially applied (with the same names) in
104
+ # SectionProxy; the stubs should be kept updated together
103
105
def getint (self , section : str , option : str , * , raw : bool = ..., vars : _section = ..., fallback : int = ...) -> int : ...
104
106
105
107
def getfloat (self , section : str , option : str , * , raw : bool = ..., vars : _section = ..., fallback : float = ...) -> float : ...
@@ -160,6 +162,13 @@ class SectionProxy(MutableMapping[str, str]):
160
162
@property
161
163
def name (self ) -> str : ...
162
164
def get (self , option : str , fallback : Optional [str ] = ..., * , raw : bool = ..., vars : Optional [_section ] = ..., ** kwargs : Any ) -> str : ... # type: ignore
165
+
166
+ # These are partially-applied version of the methods with the same names in
167
+ # RawConfigParser; the stubs should be kept updated together
168
+ def getint (self , option : str , * , raw : bool = ..., vars : _section = ..., fallback : int = ...) -> int : ...
169
+ def getfloat (self , option : str , * , raw : bool = ..., vars : _section = ..., fallback : float = ...) -> float : ...
170
+ def getboolean (self , option : str , * , raw : bool = ..., vars : _section = ..., fallback : bool = ...) -> bool : ...
171
+
163
172
# SectionProxy can have arbitrary attributes when custon converters are used
164
173
def __getattr__ (self , key : str ) -> Callable [..., Any ]: ...
165
174
0 commit comments