You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i debug pip in my project, and i found you project are still using optparse module.
classCustomOptionParser(optparse.OptionParser):
definsert_option_group(
self, idx: int, *args: Any, **kwargs: Any
) ->optparse.OptionGroup:
"""Insert an OptionGroup at a given position."""group=self.add_option_group(*args, **kwargs)
self.option_groups.pop()
self.option_groups.insert(idx, group)
returngroup@propertydefoption_list_all(self) ->List[optparse.Option]:
"""Get a list of all options, including those in option groups."""res=self.option_list[:]
foriinself.option_groups:
res.extend(i.option_list)
returnres
What's the problem this feature will solve?
i debug pip in my project, and i found you project are still using
optparse
module.but it is deprecated since version 3.2 in python. Deprecated since version 3.2
Deprecated since version 3.2: The optparse module is deprecated and will not be developed further; development will continue with the argparse module.
I think pip should be update, maybe, it is only my suggestion.
Describe the solution you'd like
Use argparse instead, after all optparse is no longer maintained
Alternative Solutions
N/A
Additional context
N/A
Code of Conduct
The text was updated successfully, but these errors were encountered: