Skip to content

Commit

Permalink
adress #24 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
amakelov committed Aug 24, 2024
1 parent b9c693e commit c354062
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mandala/deps/tracers/dec_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ def track(obj: Union[types.FunctionType, type]) -> "obj":
TracerState.registry[(obj.__module__, obj.__qualname__)] = obj
return obj
elif isinstance(obj, types.FunctionType):
obj = make_tracked_copy(unwrap_decorators(obj, strict=True))
#! NOTE: this was done with weird decorators in mind, but might actually
# be a bad idea...
# obj = make_tracked_copy(unwrap_decorators(obj, strict=True))
obj = make_tracked_copy(obj)

@wraps(obj)
def wrapper(*args, **kwargs) -> Any:
Expand Down

0 comments on commit c354062

Please sign in to comment.