diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/decorator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decorator.py b/src/decorator.py index ac78479..257b1b1 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -71,7 +71,7 @@ class FunctionMaker(object): self.name = '_lambda_' self.doc = func.__doc__ self.module = func.__module__ - if inspect.isfunction(func): + if inspect.isroutine(func): argspec = getfullargspec(func) self.annotations = getattr(func, '__annotations__', {}) for a in ('args', 'varargs', 'varkw', 'defaults', 'kwonlyargs', |
