Skip to content

Commit d2fb694

Browse files
authored
Fix return type annotations in _spectral.py (#70)
Update return type annotations for spectral derivative function.
1 parent b0d4931 commit d2fb694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exponax/_spectral.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ def derivative(
720720
*,
721721
order: int = 1,
722722
indexing: str = "ij",
723-
) -> Union[Float[Array, "C D ... (N//2)+1"], Float[Array, "D ... (N//2)+1"]]:
723+
) -> Union[Float[Array, "C D ... N"], Float[Array, "D ... N"]]:
724724
"""
725725
Perform the spectral derivative of a field. In higher dimensions, this
726726
defaults to the gradient (the collection of all partial derivatives). In 1d,
@@ -752,7 +752,7 @@ def derivative(
752752
**Returns:**
753753
754754
- `field_der`: The derivative of the field, shape `(C, D, ...,
755-
(N//2)+1)` or `(D, ..., (N//2)+1)`.
755+
N)` or `(D, ..., N)`.
756756
"""
757757
channel_shape = field.shape[0]
758758
spatial_shape = field.shape[1:]

0 commit comments

Comments
 (0)