MCPcopy
hub / github.com/python/mypy / get_inspect

Method get_inspect

mypy/test/testfinegrained.py:367–371  ·  view source on GitHub ↗
(self, program_text: str, incremental_step: int)

Source from the content-addressed store, hash-verified

365 return m
366
367 def get_inspect(self, program_text: str, incremental_step: int) -> list[tuple[str, str]]:
368 step_bit = "1?" if incremental_step == 1 else str(incremental_step)
369 regex = f"# inspect{step_bit}: (--[a-zA-Z0-9_\\-=?^ ]+ )*([a-zA-Z0-9_.:/?^ ]+)$"
370 m = re.findall(regex, program_text, flags=re.MULTILINE)
371 return m
372
373
374def normalize_messages(messages: list[str]) -> list[str]:

Callers 1

maybe_inspectMethod · 0.95

Calls 1

strClass · 0.85

Tested by

no test coverage detected