Remove unused return wrapper in annotate_function that creates a self reference cycle loop in python.

PiperOrigin-RevId: 745099538
This commit is contained in:
jax authors 2025-04-08 05:24:34 -07:00
parent 5f33280ded
commit 73ecf0bb48

View File

@ -332,7 +332,6 @@ def annotate_function(func: Callable, name: str | None = None,
def wrapper(*args, **kwargs):
with TraceAnnotation(name, **decorator_kwargs):
return func(*args, **kwargs)
return wrapper
return wrapper