File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ def get_or_create_nest(
273
273
* ,
274
274
access_lists : bool = True ,
275
275
) -> dict [str , Any ]:
276
- cont = self .dict
276
+ cont : Any = self .dict
277
277
for k in key :
278
278
if k not in cont :
279
279
cont [k ] = {}
@@ -282,7 +282,7 @@ def get_or_create_nest(
282
282
cont = cont [- 1 ]
283
283
if not isinstance (cont , dict ):
284
284
raise KeyError ("There is no nest behind this key" )
285
- return cont
285
+ return cont # type: ignore[no-any-return]
286
286
287
287
def append_nest_to_list (self , key : Key ) -> None :
288
288
cont = self .get_or_create_nest (key [:- 1 ])
Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ enable_error_code = ignore-without-code
14
14
strict = True
15
15
strict_bytes = True
16
16
local_partial_types = True
17
+ warn_unreachable = True
You can’t perform that action at this time.
0 commit comments