tauthon
tauthon copied to clipboard
Make inspect.signature work with tuple unpacking
>>> import inspect
>>> def f((a, b)): pass
...
>>> inspect.signature(f)
<Signature (implicit0, /)>
>>>
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?