tauthon icon indicating copy to clipboard operation
tauthon copied to clipboard

Make inspect.signature work with tuple unpacking

Open naftaliharris opened this issue 8 years ago • 1 comments

>>> import inspect
>>> def f((a, b)): pass
...
>>> inspect.signature(f)
<Signature (implicit0, /)>
>>>

naftaliharris avatar Nov 17 '16 19:11 naftaliharris

Since PEP-3113 removed this, how would you expect this to appear?

Would it appear as a unique Parameter.kind which can then be unpacked into their individual parameters via a .__iter__() implementation? Or would it simply be a tuple of Parameters that is included in the signature with implicitX as its key?

arizvisa avatar Aug 31 '19 22:08 arizvisa