Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Improve performance of common_type and use result_type internally #24668

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update tests
  • Loading branch information
eendebakpt committed Nov 8, 2023
commit d6a8b43a63022e853b5cce89736417c0f5b50fb3
4 changes: 3 additions & 1 deletion numpy/polynomial/tests/test_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ def test_truediv(Poly):
p2 = p1 * 5

for stype in np.ScalarType:
if not issubclass(stype, Number) or issubclass(stype, bool):
if not issubclass(stype, Number):
continue
if issubclass(stype, (bool, np.timedelta64)):
continue
s = stype(5)
assert_poly_almost_equal(op.truediv(p2, s), p1)
Expand Down