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 4fe9658Copy full SHA for 4fe9658
python/omfiles/utils.py
@@ -1,3 +1,5 @@
1
+from typing import Union
2
+
3
import numpy as np
4
5
from omfiles.types import ArrayType
@@ -24,5 +26,5 @@ def _modulo_positive(value: int, modulo: int) -> int:
24
26
return ((value % modulo) + modulo) % modulo
25
27
28
-def _normalize_longitude(lon: ArrayType | float) -> ArrayType | float:
29
+def _normalize_longitude(lon: Union[ArrayType, float]) -> Union[ArrayType, float]:
30
return ((lon + 180.0) % 360.0) - 180.0
0 commit comments