Skip to content

Commit ad33845

Browse files
committed
MAINT: Use more explicit type definition
1 parent 8b46dc1 commit ad33845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

itkwidgets/_type_aliases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .integrations.pytorch import HAVE_TORCH
88
from .integrations.vtk import HAVE_VTK
99
from .integrations.xarray import HAVE_XARRAY
10-
from typing import Dict, List, Union
10+
from typing import Dict, List, Literal, Union
1111

1212
Gaussian_Curve = Dict[str, float]
1313
Gaussians = Dict[str, List[Gaussian_Curve]]
@@ -16,7 +16,7 @@
1616

1717
Image = Union[np.ndarray, itkwasm.Image, zarr.Group]
1818
PointSet = Union[np.ndarray, itkwasm.PointSet, zarr.Group]
19-
CroppingPlanes = List[Dict[str, List[Union[float, int]]]]
19+
CroppingPlanes = {Literal['origin']: List[float], Literal['normal']: List[int]}
2020

2121
if HAVE_ITK:
2222
import itk

0 commit comments

Comments
 (0)