Skip to content

Commit

Permalink
fix(palette): pixels is a property in both subclasses so set it as …
Browse files Browse the repository at this point in the history
…one in `Palette`
  • Loading branch information
loiccoyle committed Jun 24, 2024
1 parent d82a422 commit ca91b76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phomo/palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
class Palette:
"""Colour palette methods."""

pixels: np.ndarray
@property
def pixels(self) -> np.ndarray: ...

def palette(self, **kwargs) -> Tuple[np.ndarray, np.ndarray]:
"""Compute the colour distribution.
Expand Down

0 comments on commit ca91b76

Please sign in to comment.