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

Method __init__

mypyc/codegen/emitmodule.py:135–146  ·  view source on GitHub ↗
(
        self, options: Options, compiler_options: CompilerOptions, groups: Groups
    )

Source from the content-addressed store, hash-verified

133 """
134
135 def __init__(
136 self, options: Options, compiler_options: CompilerOptions, groups: Groups
137 ) -> None:
138 super().__init__(options)
139 self.group_map: dict[str, tuple[str | None, list[str]]] = {}
140 for sources, name in groups:
141 modules = sorted(source.module for source in sources)
142 for id in modules:
143 self.group_map[id] = (name, modules)
144
145 self.compiler_options = compiler_options
146 self.metastore = create_metastore(options, parallel_worker=False)
147
148 def report_config_data(self, ctx: ReportConfigContext) -> tuple[str | None, list[str]] | None:
149 # The config data we report is the group map entry for the module.

Callers

nothing calls this directly

Calls 2

create_metastoreFunction · 0.90
sortedFunction · 0.85

Tested by

no test coverage detected