Skip to content

Commit

Permalink
💬 update type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
arafune committed Nov 22, 2023
1 parent a11794e commit 2e80291
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arpes/utilities/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

if TYPE_CHECKING:
from _typeshed import Incomplete
from PySide6.QtCore.Qt import CheckState
from PySide6.QtCore import CheckState

__all__ = (
"SubjectivePushButton",
Expand Down
4 changes: 2 additions & 2 deletions arpes/utilities/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def lift_dataarray( # unused
g: Function operating on an xr.DataArray
"""

def g(arr: xr.DataArray, *args: Incomplete, **kwargs: Incomplete):
def g(arr: xr.DataArray, *args: Incomplete, **kwargs: Incomplete) -> xr.DataArray:
return apply_dataarray(arr, f, *args, **kwargs)

return g
Expand All @@ -101,7 +101,7 @@ def lift_dataarray_attrs(
Produces a new xr.DataArray.
Args:
f
f: Function to apply
Returns:
g: Function operating on the attributes of an xr.DataArray
Expand Down

0 comments on commit 2e80291

Please sign in to comment.