Skip to content

Commit 713a594

Browse files
authored
numpy 2.0 compatibility np.unicode_
1 parent 4b627ff commit 713a594

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmocean/tools.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
import matplotlib as mpl
99

1010

11-
if sys.version_info > (3,):
12-
_string_types = (str, np.str_, np.unicode_)
13-
else:
14-
_string_types = (basestring, np.str_, np.unicode_)
11+
_string_types = (str, np.str_)
1512

1613

1714
def print_colormaps(cmaps, N=256, returnrgb=True, savefiles=False):

0 commit comments

Comments
 (0)