File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4902,6 +4902,7 @@ def ranf(*args, **kwargs):
4902
4902
return _rand .random_sample (* args , ** kwargs )
4903
4903
4904
4904
__all__ = [
4905
+ 'RandomState' ,
4905
4906
'beta' ,
4906
4907
'binomial' ,
4907
4908
'bytes' ,
@@ -4954,7 +4955,6 @@ __all__ = [
4954
4955
'wald' ,
4955
4956
'weibull' ,
4956
4957
'zipf' ,
4957
- 'RandomState' ,
4958
4958
]
4959
4959
4960
4960
seed .__module__ = "numpy.random"
@@ -4963,7 +4963,8 @@ sample.__module__ = "numpy.random"
4963
4963
get_bit_generator .__module__ = "numpy.random"
4964
4964
set_bit_generator .__module__ = "numpy.random"
4965
4965
4966
- for method_name in __all__ [:- 1 ]:
4966
+ # The first item in __all__ is 'RandomState', so it can be skipped here.
4967
+ for method_name in __all__ [1 :]:
4967
4968
method = getattr (RandomState , method_name , None )
4968
4969
if method is not None :
4969
4970
method .__module__ = "numpy.random"
You can’t perform that action at this time.
0 commit comments