MCPcopy
hub / github.com/dask/dask / _extra_args

Function _extra_args

dask/_task_spec.py:1214–1227  ·  view source on GitHub ↗
(typ: type)

Source from the content-addressed store, hash-verified

1212
1213@functools.cache
1214def _extra_args(typ: type) -> set[str]:
1215 import inspect
1216
1217 sig = inspect.signature(typ)
1218 extras = set()
1219 for name, param in sig.parameters.items():
1220 if param.kind in (
1221 inspect.Parameter.VAR_POSITIONAL,
1222 inspect.Parameter.VAR_KEYWORD,
1223 ):
1224 continue
1225 if name in typ.get_all_slots(): # type: ignore[attr-defined]
1226 extras.add(name)
1227 return extras

Callers 1

substituteMethod · 0.85

Calls 4

setClass · 0.85
get_all_slotsMethod · 0.80
itemsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…