@@ -14,18 +14,18 @@ class _SectionWrapper:
14
14
config : Final [IniConfig ]
15
15
name : Final [str ]
16
16
def __init__ (self , config : IniConfig , name : str ) -> None : ...
17
- def __getitem__ (self , key : str ) -> Optional [ str ] : ...
17
+ def __getitem__ (self , key : str ) -> str : ...
18
18
def __iter__ (self ) -> Iterator [str ]: ...
19
- def get (self , key : str , default : _D = ..., convert : Callable [[Optional [ str ] ], _T ] = ...) -> Union [_T , _D ]: ...
20
- def items (self ) -> Iterator [Tuple [str , Optional [ str ] ]]: ...
19
+ def get (self , key : str , default : _D = ..., convert : Callable [[str ], _T ] = ...) -> Union [_T , _D ]: ...
20
+ def items (self ) -> Iterator [Tuple [str , str ]]: ...
21
21
def lineof (self , name : str ) -> Optional [int ]: ...
22
22
23
23
class IniConfig :
24
24
path : Final [str ]
25
- sections : Final [Mapping [str , Mapping [str , Optional [ str ] ]]]
25
+ sections : Final [Mapping [str , Mapping [str , str ]]]
26
26
def __init__ (self , path : str , data : Optional [str ] = None ): ...
27
27
def __contains__ (self , arg : str ) -> bool : ...
28
28
def __getitem__ (self , name : str ) -> _SectionWrapper : ...
29
29
def __iter__ (self ) -> Iterator [_SectionWrapper ]: ...
30
- def get (self , section : str , name : str , default : _D = ..., convert : Callable [[Optional [ str ] ], _T ] = ...) -> Union [_T , _D ]: ...
30
+ def get (self , section : str , name : str , default : _D = ..., convert : Callable [[str ], _T ] = ...) -> Union [_T , _D ]: ...
31
31
def lineof (self , section : str , name : Optional [str ] = ...) -> Optional [int ]: ...
0 commit comments