_mt19937.pyi 724 B

12345678910111213141516171819202122
  1. from typing import Any, TypedDict
  2. from numpy import dtype, ndarray, uint32
  3. from numpy.random.bit_generator import BitGenerator, SeedSequence
  4. from numpy._typing import _ArrayLikeInt_co
  5. class _MT19937Internal(TypedDict):
  6. key: ndarray[Any, dtype[uint32]]
  7. pos: int
  8. class _MT19937State(TypedDict):
  9. bit_generator: str
  10. state: _MT19937Internal
  11. class MT19937(BitGenerator):
  12. def __init__(self, seed: None | _ArrayLikeInt_co | SeedSequence = ...) -> None: ...
  13. def _legacy_seeding(self, seed: _ArrayLikeInt_co) -> None: ...
  14. def jumped(self, jumps: int = ...) -> MT19937: ...
  15. @property
  16. def state(self) -> _MT19937State: ...
  17. @state.setter
  18. def state(self, value: _MT19937State) -> None: ...