Skip to content

Commit

Permalink
tentative fix typechecking (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Sep 14, 2024
1 parent 208616b commit 073fa16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/visualization/_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def _set_cmap(self, newval: "ColormapInput") -> None:
self._cmap = newval
elif isinstance(newval, str):
self._cmap = mpl.colormaps[newval]
elif is_sequence(newval):
elif is_sequence(newval): # type: ignore [unreachable]
# tuple colormaps are from palettable (or brewer2mpl)
self._cmap = get_brewer_cmap(newval)
else:
Expand Down

0 comments on commit 073fa16

Please sign in to comment.