_sfc64.pyi 691 B

12345678910111213141516171819202122232425
  1. from typing import TypedDict, type_check_only
  2. from numpy import uint64
  3. from numpy._typing import NDArray, _ArrayLikeInt_co
  4. from numpy.random.bit_generator import BitGenerator, SeedSequence
  5. __all__ = ["SFC64"]
  6. @type_check_only
  7. class _SFC64Internal(TypedDict):
  8. state: NDArray[uint64]
  9. @type_check_only
  10. class _SFC64State(TypedDict):
  11. bit_generator: str
  12. state: _SFC64Internal
  13. has_uint32: int
  14. uinteger: int
  15. class SFC64(BitGenerator):
  16. def __init__(self, seed: _ArrayLikeInt_co | SeedSequence | None = ...) -> None: ...
  17. @property # type: ignore[override]
  18. def state(self) -> _SFC64State: ...
  19. @state.setter
  20. def state(self, value: _SFC64State) -> None: ...