Skip to content

Commit

Permalink
Use numpy.bytes_ for numpy2.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed May 17, 2024
1 parent aa65a8a commit 50ae22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fitsio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def cfitsio_version(asfloat=False):
if numpy.lib.NumpyVersion(numpy.__version__) < "1.28.0":
_stypes += (numpy.string_, numpy.str_,)
else:
_stypes += (numpy.str_,)
_stypes += (numpy.bytes_, numpy.str_,)

# for header keywords
_ftypes = (float, numpy.float32, numpy.float64)
Expand Down

0 comments on commit 50ae22a

Please sign in to comment.