Skip to content

Commit

Permalink
fix: fix tests for deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Jun 14, 2024
1 parent 3c3e155 commit 890bc21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/polartoolkit/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,10 +1103,10 @@ def groundingline(
details="Use the new function antarctic_boundaries instead",
)
def measures_boundaries(
version: str,
version: str | None = None,
) -> str:
"""Deprecated, see the new function antarctic_boundaries instead"""
return antarctic_boundaries(version)
return antarctic_boundaries(version) # type: ignore[arg-type]


def antarctic_boundaries(
Expand Down
4 changes: 2 additions & 2 deletions src/polartoolkit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,15 +792,15 @@ def mask_from_shp(
details="alter_region has been moved to the regions module, use that instead",
)
def alter_region(
starting_region: tuple[float, float, float, float],
starting_region: tuple[float, float, float, float] | None = None,
zoom: float = 0,
n_shift: float = 0,
w_shift: float = 0,
buffer: float = 0, # noqa: ARG001 # pylint: disable=unused-argument
print_reg: bool = False, # noqa: ARG001 # pylint: disable=unused-argument
) -> tuple[float, float, float, float]:
"""deprecated function, use regions.alter_region instead"""
return regions.alter_region(starting_region, zoom, n_shift, w_shift)
return regions.alter_region(starting_region, zoom, n_shift, w_shift) # type: ignore[arg-type]


def set_proj(
Expand Down

0 comments on commit 890bc21

Please sign in to comment.