MCPcopy Create free account
hub / github.com/dask/dask / getargspec

Function getargspec

dask/utils.py:640–649  ·  view source on GitHub ↗

Version of inspect.getargspec that works with partial and warps.

(func)

Source from the content-addressed store, hash-verified

638
639
640def getargspec(func):
641 """Version of inspect.getargspec that works with partial and warps."""
642 if isinstance(func, functools.partial):
643 return getargspec(func.func)
644
645 func = getattr(func, "__wrapped__", func)
646 if isinstance(func, type):
647 return inspect.getfullargspec(func.__init__)
648 else:
649 return inspect.getfullargspec(func)
650
651
652def takes_multiple_arguments(func, varargs=True):

Callers 5

write_metadataMethod · 0.90
test_getargspecFunction · 0.90
reductionFunction · 0.90
reductionFunction · 0.90
takes_multiple_argumentsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_getargspecFunction · 0.72