Skip to content

Commit

Permalink
Remove new_semantic_analyzer from config parameters (#7529)
Browse files Browse the repository at this point in the history
Fixes #7523.
  • Loading branch information
onlined authored and msullivan committed Oct 11, 2019
1 parent 6a5cc35 commit 9751449
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mypy/config_parser.py
Expand Up @@ -178,7 +178,12 @@ def parse_section(prefix: str, template: Options,
if key in config_types:
ct = config_types[key]
else:
dv = getattr(template, key, None)
dv = None
# We have to keep new_semantic_analyzer in Options
# for plugin compatibility but it is not a valid option anymore.
assert hasattr(template, 'new_semantic_analyzer')
if key != 'new_semantic_analyzer':
dv = getattr(template, key, None)
if dv is None:
if key.endswith('_report'):
report_type = key[:-7].replace('_', '-')
Expand Down

0 comments on commit 9751449

Please sign in to comment.