We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e2eb7 commit e313371Copy full SHA for e313371
mypy/config_parser.py
@@ -608,6 +608,11 @@ def parse_mypy_comments(
608
# method is to create a config parser.
609
parser = configparser.RawConfigParser()
610
options, parse_errors = mypy_comments_to_config_map(line, template)
611
+
612
+ if "python_version" in options:
613
+ errors.append((lineno, "python_version not supported in inline configuration"))
614
+ del options["python_version"]
615
616
parser["dummy"] = options
617
errors.extend((lineno, x) for x in parse_errors)
618
0 commit comments