_pcg64.pyi 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import sys
  2. from typing import Union
  3. from numpy.random.bit_generator import BitGenerator, SeedSequence
  4. from numpy.typing import _ArrayLikeInt_co
  5. if sys.version_info >= (3, 8):
  6. from typing import TypedDict
  7. else:
  8. from typing_extensions import TypedDict
  9. class _PCG64Internal(TypedDict):
  10. state: int
  11. inc: int
  12. class _PCG64State(TypedDict):
  13. bit_generator: str
  14. state: _PCG64Internal
  15. has_uint32: int
  16. uinteger: int
  17. class PCG64(BitGenerator):
  18. def __init__(self, seed: Union[None, _ArrayLikeInt_co, SeedSequence] = ...) -> None: ...
  19. def jumped(self, jumps: int = ...) -> PCG64: ...
  20. @property
  21. def state(
  22. self,
  23. ) -> _PCG64State: ...
  24. @state.setter
  25. def state(
  26. self,
  27. value: _PCG64State,
  28. ) -> None: ...
  29. def advance(self, delta: int) -> PCG64: ...
  30. class PCG64DXSM(BitGenerator):
  31. def __init__(self, seed: Union[None, _ArrayLikeInt_co, SeedSequence] = ...) -> None: ...
  32. def jumped(self, jumps: int = ...) -> PCG64DXSM: ...
  33. @property
  34. def state(
  35. self,
  36. ) -> _PCG64State: ...
  37. @state.setter
  38. def state(
  39. self,
  40. value: _PCG64State,
  41. ) -> None: ...
  42. def advance(self, delta: int) -> PCG64DXSM: ...