Skip to content

Commit 6549bc5

Browse files
committed
Add argument names as attribute of reference implementations
1 parent 7b15503 commit 6549bc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xsref/_reference/_framework.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import functools
2+
import inspect
23
import math
34
import numpy as np
45
import scipy
@@ -226,5 +227,6 @@ def wrapper(*args, timeout=self.default_timeout):
226227
wrapper.__annotations__ = typing.get_type_hints(func)
227228
setattr(wrapper, "_scipy_func", self.scipy_func)
228229
setattr(wrapper, "_mp", func)
230+
setattr(wrapper, "_arg_names", inspect.getfullargspec(func).args)
229231
setattr(wrapper, "__xsref", None)
230232
return wrapper

0 commit comments

Comments
 (0)