Add auto-parameter support & refactor
This commit is contained in:
parent
7192ba064a
commit
cfbbd578aa
1 changed files with 232 additions and 152 deletions
|
|
@ -5,6 +5,7 @@ from typing import Any, Callable, Dict, Mapping, Sequence
|
|||
def get_args(
|
||||
func: Callable[..., Any], args: Sequence[Any], kwargs: Mapping[str, Any]
|
||||
) -> Dict[str, Any]:
|
||||
"""Return mapping from parameter names to actual argument values"""
|
||||
signature = inspect.signature(func)
|
||||
filter_keys = [
|
||||
param.name
|
||||
|
|
|
|||
Loading…
Reference in a new issue