Skip to content

Commit

Permalink
Resolve mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Jan 5, 2024
1 parent a28f0f8 commit 2b32344
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scico/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def rgb2gray(rgb: snp.Array) -> snp.Array:
Grayscale image as Nr x Nc or Nr x Nc x K array.
"""

shape: Union[Tuple[int, int, int], Tuple[int, int, int, int]]
if rgb.ndim == 3:
shape = (1, 1, 3)
else:
Expand Down

0 comments on commit 2b32344

Please sign in to comment.