Skip to content

Commit

Permalink
maint: move SomeCRS type alias to avoid FutureRef
Browse files Browse the repository at this point in the history
- docs are failing due to `SomeCRS` type alias,
  this should maybe fix it?
  • Loading branch information
Kirill888 committed Jul 1, 2024
1 parent cd412fd commit 40243c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions odc/geo/crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

from .types import XY, Unset

SomeCRS = Union[str, int, "CRS", _CRS, Dict[str, Any]]
MaybeCRS = Union[SomeCRS, Unset, None]
EPSG_UNSET = 0


Expand Down Expand Up @@ -395,6 +393,9 @@ class CRSMismatchError(ValueError):
"""


SomeCRS = Union[str, int, CRS, _CRS, Dict[str, Any]]
MaybeCRS = Union[SomeCRS, Unset, None]

# fmt: off
@overload
def norm_crs(crs: SomeCRS) -> CRS: ...
Expand Down

0 comments on commit 40243c4

Please sign in to comment.