Skip to content

Commit

Permalink
Merge pull request #1566 from girder/update-type-ignore
Browse files Browse the repository at this point in the history
Update a type ignore comment
  • Loading branch information
manthey authored Jul 8, 2024
2 parents 6c2ec5c + ab8705a commit b93b3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion large_image/tilesource/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def getPaletteColors(value: Union[str, List[Union[str, float, Tuple[float, ...]]
palette = ['#0000', mpl.colors.to_hex(str(value))]
else:
cmap = mpl.colormaps.get_cmap(str(value)) if hasattr(getattr(
mpl, 'colormaps', None), 'get_cmap') else mpl.cm.get_cmap( # type: ignore
mpl, 'colormaps', None), 'get_cmap') else mpl.cm.get_cmap(
str(value))
palette = [mpl.colors.to_hex(cmap(i)) for i in range(cmap.N)]
except (ImportError, ValueError, AttributeError):
Expand Down

0 comments on commit b93b3d8

Please sign in to comment.