The method returns a tuple of io.BytesIO objects that hold the temporary
stdin and stdout. By correcting the type, it allows usages of
io.BytesIO.getvalue() to pass type checking.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
The first positional argument to HelpFormatter.format_option() and
HelpFormatter.format_option_strings() is a Option instance, not an
OptionParser.
Added some attributes to the Option class:
- callback
- callback_args
- callback_kwargs
- help
- metavar
The OptionParser.option_groups attribute is a list of OptionGroup
instances, not OptionParser instances.
The method OptionParser.add_option_group() returns a OptionGroup
instance (the one created/added), not an OptionParser instance.
Per the docs, globals/locals is an optional argument.
Additionally, globals/locals can be any mapping type, not only a dict.
Likewise, fromlist can be any sequence (the docs mention a tuple, not a
list).
The function returns a ModuleType, not Any.