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

Method is_marker_line

mypy/util.py:742–748  ·  view source on GitHub ↗
(self, line: str)

Source from the content-addressed store, hash-verified

740 return start + self.colors[color] + text + self.NORMAL
741
742 def is_marker_line(self, line: str) -> bool:
743 s_line = line.lstrip()
744 return (
745 line.startswith(CODE_START)
746 and s_line.startswith("^")
747 and set(s_line).issubset({"^", "~"})
748 )
749
750 def fit_in_terminal(
751 self, messages: list[str], fixed_terminal_width: int | None = None

Callers 2

fit_in_terminalMethod · 0.95
colorizeMethod · 0.95

Calls 3

setClass · 0.85
lstripMethod · 0.80
startswithMethod · 0.45

Tested by

no test coverage detected