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

Method increment_output

mypy/dmypy_server.py:832–837  ·  view source on GitHub ↗
(
        self, messages: list[str], sources: list[BuildSource], is_tty: bool, terminal_width: int
    )

Source from the content-addressed store, hash-verified

830 return found
831
832 def increment_output(
833 self, messages: list[str], sources: list[BuildSource], is_tty: bool, terminal_width: int
834 ) -> dict[str, Any]:
835 status = 1 if messages else 0
836 messages = self.pretty_messages(messages, len(sources), is_tty, terminal_width)
837 return {"out": "".join(s + "\n" for s in messages), "err": "", "status": status}
838
839 def pretty_messages(
840 self,

Callers 2

cmd_recheckMethod · 0.95
checkMethod · 0.95

Calls 3

pretty_messagesMethod · 0.95
lenFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected