@@ -226,7 +226,7 @@ class Flags:
226226 EXPLICIT_NEST : Final = 1
227227
228228 def __init__ (self ) -> None :
229- self ._flags : dict [str , dict ] = {}
229+ self ._flags : dict [str , dict [ Any , Any ] ] = {}
230230 self ._pending_flags : set [tuple [Key , int ]] = set ()
231231
232232 def add_pending (self , key : Key , flag : int ) -> None :
@@ -284,7 +284,7 @@ def get_or_create_nest(
284284 key : Key ,
285285 * ,
286286 access_lists : bool = True ,
287- ) -> dict :
287+ ) -> dict [ str , Any ] :
288288 cont : Any = self .dict
289289 for k in key :
290290 if k not in cont :
@@ -294,7 +294,7 @@ def get_or_create_nest(
294294 cont = cont [- 1 ]
295295 if not isinstance (cont , dict ):
296296 raise KeyError ("There is no nest behind this key" )
297- return cont
297+ return cont # type: ignore[no-any-return]
298298
299299 def append_nest_to_list (self , key : Key ) -> None :
300300 cont = self .get_or_create_nest (key [:- 1 ])
@@ -500,9 +500,9 @@ def parse_one_line_basic_str(src: str, pos: Pos) -> tuple[Pos, str]:
500500
501501def parse_array (
502502 src : str , pos : Pos , parse_float : ParseFloat , nest_lvl : int
503- ) -> tuple [Pos , list ]:
503+ ) -> tuple [Pos , list [ Any ] ]:
504504 pos += 1
505- array : list = []
505+ array : list [ Any ] = []
506506
507507 pos = skip_comments_and_array_ws (src , pos )
508508 if src .startswith ("]" , pos ):
@@ -526,7 +526,7 @@ def parse_array(
526526
527527def parse_inline_table (
528528 src : str , pos : Pos , parse_float : ParseFloat , nest_lvl : int
529- ) -> tuple [Pos , dict ]:
529+ ) -> tuple [Pos , dict [ str , Any ] ]:
530530 pos += 1
531531 nested_dict = NestedDict ()
532532 flags = Flags ()
0 commit comments