Skip to content

Commit

Permalink
Replace numpy.issubsctype usage withnumpy.issubdtype for compatib…
Browse files Browse the repository at this point in the history
…ility with numpy 2.0
  • Loading branch information
matthewwardrop committed Dec 25, 2023
1 parent a889cde commit 5817905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patsy/design_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def slice(self, columns_specifier):
"""
if isinstance(columns_specifier, slice):
return columns_specifier
if np.issubsctype(type(columns_specifier), np.integer):
if np.issubdtype(type(columns_specifier), np.integer):
return slice(columns_specifier, columns_specifier + 1)
if (self.term_slices is not None
and columns_specifier in self.term_slices):
Expand Down

0 comments on commit 5817905

Please sign in to comment.