MCPcopy
hub / github.com/dask/dask / getargspec

Function getargspec

dask/utils.py:641–650  ·  view source on GitHub ↗

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

(func)

Source from the content-addressed store, hash-verified

639
640
641def getargspec(func):
642 """Version of inspect.getargspec that works with partial and warps."""
643 if isinstance(func, functools.partial):
644 return getargspec(func.func)
645
646 func = getattr(func, "__wrapped__", func)
647 if isinstance(func, type):
648 return inspect.getfullargspec(func.__init__)
649 else:
650 return inspect.getfullargspec(func)
651
652
653def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…