goatools.gosubdag.utils module

Small lightweight utilities used frequently in GOATOOLS.

goatools.gosubdag.utils.extract_kwargs(args, exp_keys, exp_elems)[source]

Return user-specified keyword args in a dictionary and a set (for True/False items).

goatools.gosubdag.utils.get_kwargs_set(args, exp_elem2dflt)[source]

Return user-specified keyword args in a dictionary and a set (for True/False items).

goatools.gosubdag.utils.get_kwargs(args, exp_keys, exp_elems)[source]

Return user-specified keyword args in a dictionary and a set (for True/False items).

goatools.gosubdag.utils.chk_kwargs(name: str, kws: Dict[str, Any], expected: Set[str]) → None[source]

Raise TypeError on an unexpected keyword arg, as Python does, suggesting a close match.