Skip to content

Commit 366f9e7

Browse files
committed
Use Optional instead of | None for Python 3.9 compat
1 parent 4139c39 commit 366f9e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

s2fft/transforms/spherical.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import List
2+
from typing import List, Optional
33

44
import jax.numpy as jnp
55
import numpy as np
@@ -336,14 +336,14 @@ def forward(
336336
f: np.ndarray,
337337
L: int,
338338
spin: int = 0,
339-
nside: int | None = None,
339+
nside: Optional[int] = None,
340340
sampling: str = "mw",
341341
method: str = "numpy",
342342
reality: bool = False,
343-
precomps: List | None = None,
343+
precomps: Optional[List] = None,
344344
spmd: bool = False,
345345
L_lower: int = 0,
346-
iter: int | None = None,
346+
iter: Optional[int] = None,
347347
_ssht_backend: int = 1,
348348
) -> np.ndarray:
349349
r"""

0 commit comments

Comments
 (0)