Skip to content

Commit 60b215c

Browse files
author
Sylvain MARIE
committed
Removed useless code.
1 parent 4eede70 commit 60b215c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoclass/autoargs_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def autoargs_decorate(func, # type: Callable
8383

8484
# check that include/exclude dont contain names that are incorrect
8585
if include is not None:
86-
incorrect = set(list([include] if isinstance(include, str) else include)) - set(func_sig.parameters.keys())
86+
incorrect = set([include] if isinstance(include, str) else include) - set(func_sig.parameters.keys())
8787
if len(incorrect) > 0:
8888
raise ValueError("@autoargs definition exception: include contains '%s' that is/are "
8989
"not part of signature for %s" % (incorrect, func))

0 commit comments

Comments
 (0)