mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 11:21:19 +08:00
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.