Skip to content

Commit

Permalink
Change type of layer Metadata from Dict to Mapping (#357)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Draga Doncila Pop <[email protected]>
  • Loading branch information
3 people authored Sep 11, 2024
1 parent 014141a commit e48ab10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/npe2/types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections.abc import Mapping
from typing import (
TYPE_CHECKING,
Callable,
Dict,
List,
Literal,
NewType,
Expand Down Expand Up @@ -48,7 +48,7 @@ def __array__(self) -> "np.ndarray":
LayerName = Literal[
"graph", "image", "labels", "points", "shapes", "surface", "tracks", "vectors"
]
Metadata = Dict
Metadata = Mapping
DataType = Union[ArrayLike, Sequence[ArrayLike]]
FullLayerData = Tuple[DataType, Metadata, LayerName]
LayerData = Union[Tuple[DataType], Tuple[DataType, Metadata], FullLayerData]
Expand Down

0 comments on commit e48ab10

Please sign in to comment.