We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8013865 commit 8d8e609Copy full SHA for 8d8e609
python/omfiles/utils.py
@@ -1,6 +1,7 @@
1
import numpy as np
2
3
from omfiles.types import ArrayType
4
+from typing import Union
5
6
EPOCH = np.datetime64(0, "s")
7
@@ -24,5 +25,5 @@ def _modulo_positive(value: int, modulo: int) -> int:
24
25
return ((value % modulo) + modulo) % modulo
26
27
-def _normalize_longitude(lon: ArrayType | float) -> ArrayType | float:
28
+def _normalize_longitude(lon: Union[ArrayType, float]) -> Union[ArrayType, float]:
29
return ((lon + 180.0) % 360.0) - 180.0
0 commit comments