Skip to content

Commit

Permalink
Try to return something to help mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Feb 13, 2024
1 parent 8e883fc commit 4ede31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ def find_stack_level(test_mode=False) -> int:
def emit_user_level_warning(message, category=None):
"""Emit a warning at the user level by inspecting the stack trace."""
stacklevel = find_stack_level()
warnings.warn(message, category=category, stacklevel=stacklevel)
return warnings.warn(message, category=category, stacklevel=stacklevel)


def consolidate_dask_from_array_kwargs(
Expand Down

0 comments on commit 4ede31d

Please sign in to comment.