Created by: sneaxiy
When the API is something like:
def test(*args, **kwargs):
pass
The defaults
field of its spec would be None, and original implementation of print_signatures.py
would produce empty spec (because of the except TypeError
branch) for this kind of API.
After this PR's revision, the spec would become:
ArgSpec(args=[], varargs=args, keywords=kwargs, defaults=None)