Skip to content

Commit

Permalink
Merge pull request #21289 from jakevdp:stacklevel
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 634895282
  • Loading branch information
jax authors committed May 17, 2024
2 parents 56301d4 + 9ad6729 commit 7a3fc71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/experimental/export/_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ def wrap_with_deprecation_warning(f):
"`from jax.experimental.export import export` you should use "
"`from jax.experimental import export`.")
def wrapped_f(*args, **kwargs):
warnings.warn(msg, DeprecationWarning)
warnings.warn(msg, DeprecationWarning, stacklevel=2)
return f(*args, **kwargs)
return wrapped_f

Expand Down

0 comments on commit 7a3fc71

Please sign in to comment.