Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0d66a0

Browse 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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/pylab.py

Lines 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)