Mypy type checker command line tool.
Class |
|
Undocumented |
Class |
|
Override ArgumentParser methods that use sys.stdout/sys.stderr directly. |
Class |
|
Supplement CapturableArgumentParser to handle --version. |
Exception |
|
Represents a failure to infer the version or executable while searching. |
Function | fail |
Fail with a serious error. |
Function | infer |
Infer the Python executable from the given version. |
Function | install |
Install stub packages using pip if some missing stubs were detected. |
Function | invert |
Undocumented |
Function | main |
Main entry point to the type checker. |
Function | maybe |
Undocumented |
Function | process |
Validate cache_map and copy into options.cache_map. |
Function | process |
Parse command line arguments. |
Function | process |
Validate and normalize package_root. |
Function | python |
Undocumented |
Function | read |
Undocumented |
Function | run |
Undocumented |
Function | show |
Undocumented |
Function | stat |
Undocumented |
Constant | DESCRIPTION |
Undocumented |
Constant | flag |
Undocumented |
Constant | flag |
Undocumented |
Constant | FOOTER |
Undocumented |
Constant | HEADER |
Undocumented |
Constant | MEM |
Undocumented |
Function | _python |
Undocumented |
Infer the Python executable from the given version. This function mutates options based on special_opts to infer the correct Python executable to use.
util.FancyFormatter
, options: Options
, *, after_run: bool
= False, non_interactive: bool
= False) -> bool
:
(source)
¶
Install stub packages using pip if some missing stubs were detected.
list[ str]|None
= None, stdout: TextIO
= sys.stdout, stderr: TextIO
= sys.stderr, clean_exit: bool
= False):
(source)
¶
Main entry point to the type checker. Args: args: Custom command-line arguments. If not given, sys.argv[1:] will be used. clean_exit: Don't hard kill the process on exit. This allows catching SystemExit.
float
, serious: bool
, messages: list[ str]
, options: Options
):
(source)
¶
Undocumented
argparse.ArgumentParser
, special_opts: argparse.Namespace
, options: Options
):
(source)
¶
Validate cache_map and copy into options.cache_map.
list[ str]
, stdout: TextIO|None
= None, stderr: TextIO|None
= None, require_targets: bool
= True, server_options: bool
= False, fscache: FileSystemCache|None
= None, program: str
= 'mypy', header: str
= HEADER) -> tuple[ list[ BuildSource], Options]
:
(source)
¶
Parse command line arguments. If a FileSystemCache is passed in, and package_root options are given, call fscache.set_package_root() to set the cache's package root.
FileSystemCache|None
, parser: argparse.ArgumentParser
, options: Options
):
(source)
¶
Validate and normalize package_root.
list[ BuildSource]
, options: Options
, fscache: FileSystemCache
, t0: float
, stdout: TextIO
, stderr: TextIO
) -> tuple[ build.BuildResult|None, list[ str], bool]
:
(source)
¶
Undocumented
list[ str]
, f: TextIO
, formatter: util.FancyFormatter
, options: Options
):
(source)
¶
Undocumented
Undocumented
Value |
|
Undocumented
Value |
|