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

Function warn_unused_configs

mypy/build.py:567–578  ·  view source on GitHub ↗
(
    options: Options, flush_errors: Callable[[str | None, list[str], bool], None]
)

Source from the content-addressed store, hash-verified

565
566
567def warn_unused_configs(
568 options: Options, flush_errors: Callable[[str | None, list[str], bool], None]
569) -> None:
570 unused_configs = options.get_unused_configs()
571 if options.warn_unused_configs and unused_configs and not options.non_interactive:
572 unused = get_config_module_names(
573 options.config_file,
574 [glob for glob in options.per_module_options.keys() if glob in unused_configs],
575 )
576 flush_errors(
577 None, ["{}: note: unused section(s): {}".format(options.config_file, unused)], False
578 )
579
580
581def default_data_dir() -> str:

Callers 1

build_innerFunction · 0.85

Calls 5

get_config_module_namesFunction · 0.90
get_unused_configsMethod · 0.80
keysMethod · 0.80
flush_errorsFunction · 0.70
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…