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

Method cmd_check

mypy/dmypy_server.py:358–366  ·  view source on GitHub ↗

Check a list of files.

(
        self, files: Sequence[str], export_types: bool, is_tty: bool, terminal_width: int
    )

Source from the content-addressed store, hash-verified

356 return self.check(sources, export_types, is_tty, terminal_width)
357
358 def cmd_check(
359 self, files: Sequence[str], export_types: bool, is_tty: bool, terminal_width: int
360 ) -> dict[str, object]:
361 """Check a list of files."""
362 try:
363 sources = create_source_list(files, self.options, self.fscache)
364 except InvalidSourceList as err:
365 return {"out": "", "err": str(err), "status": 2}
366 return self.check(sources, export_types, is_tty, terminal_width)
367
368 def cmd_recheck(
369 self,

Callers

nothing calls this directly

Calls 3

checkMethod · 0.95
create_source_listFunction · 0.90
strClass · 0.85

Tested by

no test coverage detected