module documentation
Configuration for pytype (mostly derived from the commandline args). Various parts of pytype use these options. This module packages the options into an Options class.
Class |
|
Encapsulation of the configuration options. |
Class |
|
Postprocesses configuration options. |
Exception |
|
Exception raised if Postprocessor.process() fails. |
Function | add |
Add all pytype options to the given parser. |
Function | add |
Add basic options to the given parser. |
Function | add |
Add debug options to the given parser. |
Function | add |
Add flags for experimental and temporarily gated features. |
Function | add |
Add infrastructure options to the given parser. |
Function | add |
Add operation modes to the given parser. |
Function | add |
Undocumented |
Function | add |
Add options for using pickled pyi files to the given parser. |
Function | add |
Add subtools to the given parser. |
Function | args |
Return a map of {destination: _Arg} for all config options. |
Function | base |
Use argparse to make a parser for configuration options. |
Function | make |
Use argparse to make a parser for configuration options. |
Function | verbosity |
Sets the logging level to options.verbosity and restores it afterwards. |
Constant | ALL |
Undocumented |
Constant | BASIC |
Undocumented |
Constant | DEBUG |
Undocumented |
Constant | EXPERIMENTAL |
Undocumented |
Constant | FEATURE |
Undocumented |
Constant | INFRASTRUCTURE |
Undocumented |
Constant | LOG |
Undocumented |
Constant | MODES |
Undocumented |
Constant | PICKLE |
Undocumented |
Constant | SUBTOOLS |
Undocumented |
Variable | uses |
Undocumented |
Class | _ |
Hold args for argparse.ArgumentParser.add_argument. |
Function | _flag |
Undocumented |
Function | _set |
Set the logging verbosity. |
Constant | _LIBRARY |
Undocumented |
Constant | _OPT |
Undocumented |
Sets the logging level to options.verbosity and restores it afterwards. If you directly call any of pytype's internal methods, like analyze.infer_types, use this contextmanager to set the logging verbosity. Consider using one of the top-level methods in pytype.io instead, which take care of this detail for you. Arguments: options: A config.Options object. Yields: Nothing.
Undocumented
Value |
|
Undocumented
Value |
|