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

again

parent d30ff4e1
No related branches found
No related tags found
No related merge requests found
......@@ -278,12 +278,8 @@ def typed(*t_args, **t_kwargs):
@functools.wraps(fun)
def inner(*args, **kwargs):
try:
fun.im_class
except AttributeError:
cargs = t_args
else:
cargs = t_args[1:]
if inspect.ismethod(fun):
cargs = itertools.chain([None], cargs)
for argument, typedescr in zip(cargs, t_args):
if typedescr is not None:
......
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