Skip to content
Snippets Groups Projects
Commit 424ec54b authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

bugfix

parent c3c2f4e3
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,7 @@ def typed(*t_args, **t_kwargs):
@functools.wraps(fun)
def inner(*args, **kwargs):
if isinstance(fun, types.MethodType): # instancemethod or classmethod
if isinstance(fun, types.MethodType) or inspect.ismethod(fun): # instancemethod or classmethod
cargs = args[1:]
else:
cargs = args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment