Skip to content

Commit

Permalink
chore(mypy): fix mypy typing issues with NumPy 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jbms committed Dec 10, 2024
1 parent e9c1ff7 commit 5ef8e6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/neuroglancer/coordinate_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def __init__(
names_tuple = tuple(names)
rank = len(names_tuple)
self.names = names_tuple
scales_array: np.typing.NDArray[np.float64]
if scales is None:
scales_array = np.ones(rank, dtype=np.float64)
else:
Expand Down
2 changes: 2 additions & 0 deletions python/neuroglancer/write_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def _get_dtype_for_properties(
class AnnotationWriter:
annotations: list[Annotation]
related_annotations: list[dict[int, list[Annotation]]]
lower_bound: np.typing.NDArray[np.float64]
upper_bound: np.typing.NDArray[np.float64]

def __init__(
self,
Expand Down

0 comments on commit 5ef8e6a

Please sign in to comment.