Skip to content

Commit

Permalink
Check with inspect.routine()
Browse files Browse the repository at this point in the history
  • Loading branch information
borishim committed Nov 17, 2021
1 parent d5d65ad commit 5478aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, func=None, name=None, signature=None,
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',
Expand Down

0 comments on commit 5478aa3

Please sign in to comment.