Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b0d66a0

Browse filesBrowse files
committed
Remove NumPy abs overrides from pylab
NumPy added abs in 1.26, which we don't want when we import * from it. Fixes #26553
1 parent d85bc15 commit b0d66a0
Copy full SHA for b0d66a0

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎lib/matplotlib/pylab.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pylab.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
# "from numpy.random import *" above
6060
bytes = __import__("builtins").bytes
6161
# We also don't want the numpy version of these functions
62+
abs = __import__("builtins").abs
6263
max = __import__("builtins").max
6364
min = __import__("builtins").min
6465
round = __import__("builtins").round

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.