MCPcopy Index your code
hub / github.com/dask/dask / get_named_args

Function get_named_args

dask/utils.py:700–707  ·  view source on GitHub ↗

Get all non ``*args/**kwargs`` arguments for a function

(func)

Source from the content-addressed store, hash-verified

698
699
700def get_named_args(func) -> list[str]:
701 """Get all non ``*args/**kwargs`` arguments for a function"""
702 s = inspect.signature(func)
703 return [
704 n
705 for n, p in s.parameters.items()
706 if p.kind in [p.POSITIONAL_OR_KEYWORD, p.POSITIONAL_ONLY, p.KEYWORD_ONLY]
707 ]
708
709
710class Dispatch:

Callers 2

_derived_fromFunction · 0.85

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…