Skip to content

Commit

Permalink
change ValuesView
Browse files Browse the repository at this point in the history
  • Loading branch information
melonora committed Dec 15, 2024
1 parent c00644e commit 0cd163b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/spatialdata/_core/_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

from collections import UserDict
from collections.abc import Iterable, KeysView
from collections.abc import Iterable, KeysView, ValuesView
from typing import Any
from warnings import warn

Expand Down Expand Up @@ -60,6 +60,10 @@ def keys(self) -> KeysView[str]:
"""Return the keys of the Elements."""
return self.data.keys()

def values(self) -> ValuesView[Any]:
"""Return the values of the Elements."""
return self.data.values()


class Images(Elements):
def __setitem__(self, key: str, value: Raster_T) -> None:
Expand Down

0 comments on commit 0cd163b

Please sign in to comment.