Closed
Description
Feature or enhancement
Proposal:
urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
(link) has (self, *args, **kwargs)
, but the args are just passed through to super, and the superclass for HTTPPasswordMgrWithPriorAuth
takes no arguments. The passthrough doesn't serve a purpose and it muddies introspection of the method. I'd like to update urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
to have no arguments, so that signature introspection is more accurate. Currently, typeshed needs to have urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
on its allowlist for stubtest errors as a result of the poor introspection.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
- gh-127734: improve signature of
urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
#127735 - [3.13] gh-127734: improve signature of
urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
(GH-127735) #127744 - [3.12] gh-127734: improve signature of
urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
(GH-127735) #127745