Skip to content

Commit bb82753

Browse files
committed
fix
1 parent ed4e04e commit bb82753

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

edg/core/ConstraintExpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _new_bind(cls: Type[SelfType], binding: Binding) -> SelfType:
8181
def _bind(self: SelfType, binding: Binding) -> SelfType:
8282
"""Returns a clone of this object with the specified binding. This object must be unbound."""
8383
assert not self._is_bound()
84-
assert builder.get_enclosing_block() is self._context, f"can't clone in original context {self._context} to different new context {builder.get_curr_context()}"
84+
assert builder.get_enclosing_block() is self._context, f"can't clone in original context {self._context} to different new context {builder.get_enclosing_block()}"
8585
if not isinstance(binding, ParamBinding):
8686
assert self.initializer is None, "Only Parameters may have initializers"
8787
clone: SelfType = type(self)(self.initializer)

edg/core/HierarchyBlock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def remap_arg(arg_name: str, arg_type: Type[ConstraintExpr], arg_value: Any) ->
213213
new_kwargs[arg_name] = new_arg
214214
self._init_params[arg_name] = new_arg
215215

216-
# unconditioally pass through all args and kwargs
216+
# unconditionally pass through all args and kwargs
217217
new_args.extend(args[len(new_args):])
218218
for arg_name in kwargs:
219219
if arg_name not in new_kwargs:

0 commit comments

Comments
 (0)