Class | AugmentedHelpFormatter |
Undocumented |
Class | CapturableArgumentParser |
Override ArgumentParser methods that use sys.stdout/sys.stderr directly. |
Class | CapturableVersionAction |
Supplement CapturableArgumentParser to handle --version. |
Class | PythonExecutableInferenceError |
Represents a failure to infer the version or executable while searching. |
Function | fail |
Fail with a serious error. |
Function | infer_python_executable |
Infer the Python executable from the given version. |
Function | install_types |
Install stub packages using pip if some missing stubs were detected. |
Function | invert_flag_name |
Undocumented |
Function | main |
Main entry point to the type checker. |
Function | maybe_write_junit_xml |
Undocumented |
Function | process_cache_map |
Validate cache_map and copy into options.cache_map. |
Function | process_options |
Parse command line arguments. |
Function | process_package_roots |
Validate and normalize package_root. |
Function | python_executable_prefix |
Undocumented |
Function | read_types_packages_to_install |
Undocumented |
Function | run_build |
Undocumented |
Function | show_messages |
Undocumented |
Function | stat_proxy |
Undocumented |
Constant | DESCRIPTION |
Undocumented |
Constant | flag_prefix_map |
Undocumented |
Constant | flag_prefix_pairs |
Undocumented |
Constant | FOOTER |
Undocumented |
Constant | HEADER |
Undocumented |
Constant | MEM_PROFILE |
Undocumented |
Function | _python_executable_from_version |
Undocumented |
Parameters | |
msg:str | Undocumented |
stderr:TextIO | Undocumented |
options:Options | 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.
Parameters | |
options:Options | Undocumented |
special_opts:argparse.Namespace | Undocumented |
Parameters | |
formatter:util.FancyFormatter | Undocumented |
options:Options | Undocumented |
after_run:bool | Undocumented |
non_interactive:bool | Undocumented |
Returns | |
bool | Undocumented |
Main entry point to the type checker.
script_path: Path to the 'mypy' script (used for finding data files). args: Custom command-line arguments. If not given, sys.argv[1:] will
be used.
Parameters | |
script_path:Optional[ | Undocumented |
stdout:TextIO | Undocumented |
stderr:TextIO | Undocumented |
args:Optional[ | Undocumented |
clean_exit:bool | Undocumented |
Undocumented
Parameters | |
td:float | Undocumented |
serious:bool | Undocumented |
messages:List[ | Undocumented |
options:Options | Undocumented |
Parameters | |
parser:argparse.ArgumentParser | Undocumented |
special_opts:argparse.Namespace | Undocumented |
options:Options | Undocumented |
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.
Parameters | |
args:List[ | Undocumented |
stdout:Optional[ | Undocumented |
stderr:Optional[ | Undocumented |
require_targets:bool | Undocumented |
server_options:bool | Undocumented |
fscache:Optional[ | Undocumented |
program:str | Undocumented |
header:str | Undocumented |
Returns | |
Tuple[ | Undocumented |
Parameters | |
fscache:Optional[ | Undocumented |
parser:argparse.ArgumentParser | Undocumented |
options:Options | Undocumented |
Undocumented
Parameters | |
cache_dir:str | Undocumented |
after_run:bool | Undocumented |
Returns | |
List[ | Undocumented |
Undocumented
Parameters | |
sources:List[ | Undocumented |
options:Options | Undocumented |
fscache:FileSystemCache | Undocumented |
t0:float | Undocumented |
stdout:TextIO | Undocumented |
stderr:TextIO | Undocumented |
Returns | |
Tuple[ | Undocumented |
Undocumented
Parameters | |
messages:List[ | Undocumented |
f:TextIO | Undocumented |
formatter:util.FancyFormatter | Undocumented |
options:Options | Undocumented |
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|