图片解析应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
835 B

  1. import sys
  2. from typing import Any, Union
  3. from numpy import dtype as dtype
  4. from numpy import ndarray as ndarray
  5. from numpy import uint64
  6. from numpy.random.bit_generator import BitGenerator, SeedSequence
  7. from numpy.typing import _ArrayLikeInt_co
  8. if sys.version_info >= (3, 8):
  9. from typing import TypedDict
  10. else:
  11. from typing_extensions import TypedDict
  12. class _SFC64Internal(TypedDict):
  13. state: ndarray[Any, dtype[uint64]]
  14. class _SFC64State(TypedDict):
  15. bit_generator: str
  16. state: _SFC64Internal
  17. has_uint32: int
  18. uinteger: int
  19. class SFC64(BitGenerator):
  20. def __init__(self, seed: Union[None, _ArrayLikeInt_co, SeedSequence] = ...) -> None: ...
  21. @property
  22. def state(
  23. self,
  24. ) -> _SFC64State: ...
  25. @state.setter
  26. def state(
  27. self,
  28. value: _SFC64State,
  29. ) -> None: ...