Skip to content

Commit

Permalink
functools wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
ducky64 committed Mar 29, 2024
1 parent 17405f0 commit 359c87a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edg_core/HierarchyBlock.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import itertools
from functools import reduce
from functools import reduce, wraps
from typing import *

import edgir
Expand Down Expand Up @@ -40,6 +39,7 @@ def init_in_parent(fn: InitType) -> InitType:
import inspect
from .Builder import builder

@wraps(fn)
def wrapped(self: Block, *args_tup, **kwargs) -> Any:
args = list(args_tup)
builder_prev = builder.get_curr_context()
Expand Down

0 comments on commit 359c87a

Please sign in to comment.