Function
verify_arg_signature
(f: Callable, args: Iterable[Any], kwargs: dict)
Source from the content-addressed store, hash-verified
| 23 | |
| 24 | |
| 25 | def verify_arg_signature(f: Callable, args: Iterable[Any], kwargs: dict) -> None: |
| 26 | sig = inspect.signature(f, eval_str=True) |
| 27 | try: |
| 28 | sig.bind(*args, **kwargs) |
| 29 | except TypeError as v: |
| 30 | raise exceptions.CommandError("command argument mismatch: %s" % v.args[0]) |
| 31 | |
| 32 | |
| 33 | def typename(t: type) -> str: |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…