Skip to content

Commit 1ee46b7

Browse files
committed
MNT: Fix mypy errors in pylab imports
1 parent 9d1a393 commit 1ee46b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/pylab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
from matplotlib.pyplot import *
4646

4747
from numpy import *
48+
del fft # remove imported module numpy.fft to prevent implicit re-def
49+
del random # remove imported module numpy.random to prevent implicit re-def
4850
from numpy.fft import *
4951
from numpy.random import *
5052
from numpy.linalg import *

0 commit comments

Comments
 (0)