Skip to content

Commit

Permalink
MAINT: Rm unnecessary checks in determining typeless data.
Browse files Browse the repository at this point in the history
The issubclass should always be false in Python3, so this change
should not change behavior.
  • Loading branch information
rossbar committed Nov 14, 2022
1 parent 2ad596f commit d66bb7c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions numpy/core/arrayprint.py
Expand Up @@ -1394,10 +1394,6 @@ def _void_scalar_repr(x):


_typelessdata = [int_, float_, complex_, bool_]
if issubclass(intc, int):
_typelessdata.append(intc)
if issubclass(longlong, int):
_typelessdata.append(longlong)


def dtype_is_implied(dtype):
Expand Down

0 comments on commit d66bb7c

Please sign in to comment.