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
{{ message }}
Repository navigation
Support operator module callables in inspect.signature #86951
Activity
plammens commentedon Dec 30, 2020
Currently,
inspect.signaturedoesn't support all callables from theoperatormodule, e.g.operator.attrgetter:Support for this could be added either directly to
inspect.signatureor by adding__signature__attributes tooperator's classes.plammens commentedon Dec 30, 2020
Correction:
wRAR commentedon Apr 4, 2024
Looks like this is fixed in Python 3.12:
wRAR commentedon Apr 4, 2024
Specifically, it's fixed in the unreleased 3.12.3 (currently available in Debian unstable), probably by #116198