Skip to content

Commit

Permalink
TYP: Import into random module
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtage committed Jul 15, 2022
1 parent c5c79cd commit 0c21d8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions numpy/random/__init__.pyi
Expand Up @@ -23,6 +23,7 @@ from numpy.random.mtrand import (
f as f,
gamma as gamma,
geometric as geometric,
get_bit_generator as get_bit_generator,
get_state as get_state,
gumbel as gumbel,
hypergeometric as hypergeometric,
Expand Down Expand Up @@ -50,6 +51,7 @@ from numpy.random.mtrand import (
rayleigh as rayleigh,
sample as sample,
seed as seed,
set_bit_generator as set_bit_generator,
set_state as set_state,
shuffle as shuffle,
standard_cauchy as standard_cauchy,
Expand Down
4 changes: 2 additions & 2 deletions numpy/typing/tests/data/reveal/random.pyi
Expand Up @@ -1538,5 +1538,5 @@ reveal_type(random_st.tomaxint()) # E: int
reveal_type(random_st.tomaxint(1)) # E: ndarray[Any, dtype[{int_}]]
reveal_type(random_st.tomaxint((1,))) # E: ndarray[Any, dtype[{int_}]]

reveal_type(np.random.set_bit_generator(pcg64)) # E: BitGenerator
reveal_type(np.random.get_bit_generator()) # E: None
reveal_type(np.random.set_bit_generator(pcg64)) # E: None
reveal_type(np.random.get_bit_generator()) # E: BitGenerator

0 comments on commit 0c21d8f

Please sign in to comment.