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

Method get_suggest

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

Source from the content-addressed store, hash-verified

359 return output
360
361 def get_suggest(self, program_text: str, incremental_step: int) -> list[tuple[str, str]]:
362 step_bit = "1?" if incremental_step == 1 else str(incremental_step)
363 regex = f"# suggest{step_bit}: (--[a-zA-Z0-9_\\-./=?^ ]+ )*([a-zA-Z0-9_.:/?^ ]+)$"
364 m = re.findall(regex, program_text, flags=re.MULTILINE)
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)

Callers 1

maybe_suggestMethod · 0.95

Calls 1

strClass · 0.85

Tested by

no test coverage detected