@@ -14,18 +14,18 @@ class _SectionWrapper:
1414 config : Final [IniConfig ]
1515 name : Final [str ]
1616 def __init__ (self , config : IniConfig , name : str ) -> None : ...
17- def __getitem__ (self , key : str ) -> Optional [ str ] : ...
17+ def __getitem__ (self , key : str ) -> str : ...
1818 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 ]]: ...
2121 def lineof (self , name : str ) -> Optional [int ]: ...
2222
2323class IniConfig :
2424 path : Final [str ]
25- sections : Final [Mapping [str , Mapping [str , Optional [ str ] ]]]
25+ sections : Final [Mapping [str , Mapping [str , str ]]]
2626 def __init__ (self , path : str , data : Optional [str ] = None ): ...
2727 def __contains__ (self , arg : str ) -> bool : ...
2828 def __getitem__ (self , name : str ) -> _SectionWrapper : ...
2929 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 ]: ...
3131 def lineof (self , section : str , name : Optional [str ] = ...) -> Optional [int ]: ...
0 commit comments