Skip to content

Commit 6e14f46

Browse files
authored
Merge pull request #727 from bnmajor/docstrings
Docstrings
2 parents 5349eeb + 6ce4ffe commit 6e14f46

File tree

2 files changed

+716
-115
lines changed

2 files changed

+716
-115
lines changed

itkwidgets/_type_aliases.py

Lines changed: 3 additions & 1 deletion
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,6 +16,8 @@
1616

1717
Image = Union[np.ndarray, itkwasm.Image, zarr.Group]
1818
PointSet = Union[np.ndarray, itkwasm.PointSet, zarr.Group]
19+
CroppingPlanes = {Literal['origin']: List[float], Literal['normal']: List[int]}
20+
1921
if HAVE_ITK:
2022
import itk
2123
Image = Union[Image, itk.Image]

0 commit comments

Comments
 (0)