Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8eb9cdc

Browse files
authored
Clean up long removed config (#13610)
1 parent 9d21615 commit 8eb9cdc

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

mypy/config_parser.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ def check_follow_imports(choice: str) -> str:
149149
"files": split_and_match_files,
150150
"quickstart_file": expand_path,
151151
"junit_xml": expand_path,
152-
# These two are for backwards compatibility
153-
"silent_imports": bool,
154-
"almost_silent": bool,
155152
"follow_imports": check_follow_imports,
156153
"no_site_packages": bool,
157154
"plugins": lambda s: [p.strip() for p in s.split(",")],
@@ -471,24 +468,6 @@ def parse_section(
471468
if v:
472469
set_strict_flags()
473470
continue
474-
if key == "silent_imports":
475-
print(
476-
"%ssilent_imports has been replaced by "
477-
"ignore_missing_imports=True; follow_imports=skip" % prefix,
478-
file=stderr,
479-
)
480-
if v:
481-
if "ignore_missing_imports" not in results:
482-
results["ignore_missing_imports"] = True
483-
if "follow_imports" not in results:
484-
results["follow_imports"] = "skip"
485-
if key == "almost_silent":
486-
print(
487-
"%salmost_silent has been replaced by follow_imports=error" % prefix, file=stderr
488-
)
489-
if v:
490-
if "follow_imports" not in results:
491-
results["follow_imports"] = "error"
492471
results[options_key] = v
493472

494473
# These two flags act as per-module overrides, so store the empty defaults.

0 commit comments

Comments
 (0)