MCPcopy Index your code
hub / github.com/python/mypy / get_config_module_names

Function get_config_module_names

mypy/config_parser.py:723–730  ·  view source on GitHub ↗
(filename: str | None, modules: list[str])

Source from the content-addressed store, hash-verified

721
722
723def get_config_module_names(filename: str | None, modules: list[str]) -> str:
724 if not filename or not modules:
725 return ""
726
727 if not is_toml(filename):
728 return ", ".join(f"[mypy-{module}]" for module in modules)
729
730 return "module = ['%s']" % ("', '".join(sorted(modules)))
731
732
733class ConfigTOMLValueError(ValueError):

Callers 1

warn_unused_configsFunction · 0.90

Calls 3

is_tomlFunction · 0.85
sortedFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…