Skip to content

Commit e8d6771

Browse files
committed
Reuse section variable
1 parent a563040 commit e8d6771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def _parse_and_extend_config_file(
380380
else:
381381
section = parser["mypy"]
382382

383-
extend = parser["mypy"].pop("extend", None)
383+
extend = section.pop("extend", None)
384384
if extend:
385385
parse_ret = _parse_and_extend_config_file(
386386
template=template,

0 commit comments

Comments
 (0)