diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2021-12-18 18:44:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-18 18:44:24 +0100 |
commit | 9cf8151de8fd26551cb43288b2010965ad346839 (patch) | |
tree | a963a2c9d793e0f990634f981ebdd29a66a129d4 | |
parent | d5d65ada05723b3d4999a3aa419aac2f5f02012b (diff) | |
parent | 5478aa30cfb407684ea111867c3fd4ca829dd54d (diff) | |
download | python-decorator-git-9cf8151de8fd26551cb43288b2010965ad346839.tar.gz |
Merge pull request #137 from borishim/master
Cythonization support
-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', |