Skip to content

Commit 7ffb357

Browse files
committed
cleaning
1 parent afc358f commit 7ffb357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edg/core/HierarchyBlock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __new__(cls, *args: Any, **kwargs: Any) -> Any:
148148
# discard param 0 (self)
149149
for arg_name, arg_param in list(inspect.signature(orig_init).parameters.items())[1:]:
150150
if arg_param.kind in (inspect.Parameter.VAR_POSITIONAL, inspect.Parameter.VAR_KEYWORD):
151-
continue # pass-through *kwargs, handled at lower level
151+
continue # pass through of *args, **kwargs handled later
152152
param_expr_type = BlockMeta._ANNOTATION_EXPR_MAP.get(arg_param.annotation, None)
153153
if param_expr_type is None:
154154
raise BlockDefinitionError(new_cls, f"in {new_cls}.__init__, unknown annotation type for {arg_name}: {arg_param.annotation}")

0 commit comments

Comments
 (0)