MCPcopy
hub / github.com/dask/dask / has_keyword

Function has_keyword

dask/utils.py:1897–1901  ·  view source on GitHub ↗
(func, keyword)

Source from the content-addressed store, hash-verified

1895
1896
1897def has_keyword(func, keyword):
1898 try:
1899 return keyword in inspect.signature(func).parameters
1900 except Exception:
1901 return False
1902
1903
1904def ndimlist(seq):

Callers 8

_has_partition_infoMethod · 0.90
test_has_keywordFunction · 0.90
graph_from_arraylikeFunction · 0.90
map_blocksFunction · 0.90
__array_function__Method · 0.90
compute_metaFunction · 0.90
map_blocksFunction · 0.90
compute_metaFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_has_keywordFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…