@@ -302,7 +302,7 @@ def parse_config_file(
302302 stderr = stderr or sys .stderr
303303
304304 ret = _parse_and_extend_config_file (
305- options = options ,
305+ template = options ,
306306 set_strict_flags = set_strict_flags ,
307307 filename = filename ,
308308 stdout = stdout ,
@@ -344,7 +344,7 @@ def _merge_updates(existing: dict[str, object], new: dict[str, object]) -> None:
344344
345345
346346def _parse_and_extend_config_file (
347- options : Options ,
347+ template : Options ,
348348 set_strict_flags : Callable [[], None ],
349349 filename : str | None ,
350350 stdout : TextIO ,
@@ -379,7 +379,7 @@ def _parse_and_extend_config_file(
379379 extend = parser ["mypy" ].pop ("extend" , None )
380380 if extend :
381381 parse_ret = _parse_and_extend_config_file (
382- options = options ,
382+ template = template ,
383383 set_strict_flags = set_strict_flags ,
384384 # refer to extend relative to directory where we found current config
385385 filename = os .path .relpath (
@@ -399,7 +399,7 @@ def _parse_and_extend_config_file(
399399
400400 prefix = f"{ file_read } : [mypy]: "
401401 updates , report_dirs = parse_section (
402- prefix , options , set_strict_flags , section , config_types , stderr
402+ prefix , template , set_strict_flags , section , config_types , stderr
403403 )
404404 # extend and overwrite existing values with new ones
405405 _merge_updates (mypy_updates , updates )
@@ -409,7 +409,7 @@ def _parse_and_extend_config_file(
409409 if name .startswith ("mypy-" ):
410410 prefix = get_prefix (file_read , name )
411411 updates , report_dirs = parse_section (
412- prefix , options , set_strict_flags , section , config_types , stderr
412+ prefix , template , set_strict_flags , section , config_types , stderr
413413 )
414414 if report_dirs :
415415 print (
0 commit comments