Skip to content

Commit ed60fda

Browse files
committed
update typing
1 parent 581aa75 commit ed60fda

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

autoarray/mask/mask_2d_util.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010

1111
def mask_2d_centres_from(
12-
shape_native: tuple[int, int],
13-
pixel_scales: tuple[float, float],
14-
centre: tuple[float, float],
15-
) -> tuple[float, float]:
12+
shape_native: Tuple[int, int],
13+
pixel_scales: Tuple[float, float],
14+
centre: Tuple[float, float],
15+
) -> Tuple[float, float]:
1616
"""
1717
Compute the (y, x) scaled central coordinates of a mask given its shape, pixel-scales, and centre.
1818
@@ -42,10 +42,10 @@ def mask_2d_centres_from(
4242

4343

4444
def mask_2d_circular_from(
45-
shape_native: tuple[int, int],
46-
pixel_scales: tuple[float, float],
45+
shape_native: Tuple[int, int],
46+
pixel_scales: Tuple[float, float],
4747
radius: float,
48-
centre: tuple[float, float] = (0.0, 0.0),
48+
centre: Tuple[float, float] = (0.0, 0.0),
4949
) -> np.ndarray:
5050
"""
5151
Create a circular mask within a 2D array.
@@ -83,11 +83,11 @@ def mask_2d_circular_from(
8383

8484

8585
def mask_2d_circular_annular_from(
86-
shape_native: tuple[int, int],
87-
pixel_scales: tuple[float, float],
86+
shape_native: Tuple[int, int],
87+
pixel_scales: Tuple[float, float],
8888
inner_radius: float,
8989
outer_radius: float,
90-
centre: tuple[float, float] = (0.0, 0.0),
90+
centre: Tuple[float, float] = (0.0, 0.0),
9191
) -> np.ndarray:
9292
"""
9393
Create a circular annular mask within a 2D array.

0 commit comments

Comments
 (0)