File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ cdef int r = cnp._import_array()
196
196
if (r < 0 ):
197
197
raise ImportError ("Failed to import NumPy" )
198
198
199
+ from cython import long as cy_long
199
200
import numpy as np
200
201
import operator
201
202
import warnings
@@ -5332,7 +5333,7 @@ cdef class RandomState:
5332
5333
cov = np .array (cov )
5333
5334
if size is None :
5334
5335
shape = []
5335
- elif isinstance (size , (int , cython . long , np .integer )):
5336
+ elif isinstance (size , (int , cy_long , np .integer )):
5336
5337
shape = [size ]
5337
5338
else :
5338
5339
shape = size
@@ -5492,7 +5493,7 @@ cdef class RandomState:
5492
5493
5493
5494
if size is None :
5494
5495
shape = []
5495
- elif isinstance (size , (int , cython . long , np .integer )):
5496
+ elif isinstance (size , (int , cy_long , np .integer )):
5496
5497
shape = [size ]
5497
5498
else :
5498
5499
shape = size
@@ -5896,7 +5897,7 @@ cdef class RandomState:
5896
5897
[3, 4, 5]])
5897
5898
5898
5899
"""
5899
- if isinstance (x , (int , cython . long , np .integer )):
5900
+ if isinstance (x , (int , cy_long , np .integer )):
5900
5901
arr = np .arange (x )
5901
5902
else :
5902
5903
arr = np .array (x )
You can’t perform that action at this time.
0 commit comments