class documentation
Parser that integrates tool and pytype-single args.
Method | __init__ |
Initialize a parser. |
Method | error |
Undocumented |
Method | get |
Return a set of kwargs to pass to pytype.config.Options. |
Method | parse |
Parses argv. |
Method | process |
Process raw pytype args before passing to config.Options. |
Method | process |
Process args from a namespace. |
Instance Variable | pytype |
Undocumented |
Method | _ensure |
Final adjustment of raw pytype args before constructing Options. |
Instance Variable | _overrides |
Undocumented |
Instance Variable | _parser |
Undocumented |
Initialize a parser. Args: parser: An argparse.ArgumentParser or compatible object pytype_single_args: Args passed to pytype overrides: Pytype args that the tool overrides (will be put into the tool args, with the corresponding pytype opts getting their default values)
Return a set of kwargs to pass to pytype.config.Options. Args: args: an argparse.Namespace. Returns: A dict of kwargs with pytype_single args as keys.
overridden in
pytype.tools.xref.parse_args.XrefParser
Process raw pytype args before passing to config.Options.