Files
MoFin/venv/lib/python3.12/site-packages/numpy/random/_philox.pyi
T
知微 fa45d8aa5f fix: 小果地址统一node122(兼容LAN+EasyTier)
- health_checklist.json: 192.168.1.122→node122
- ocr_client.py: docstring IP→node122
- docs/market-data-requirements.md: IP→node122
- 所有API调用通过ProxyHandler({})绕过系统代理
  Privoxy对node122:18003返回500,直连正常
2026-06-30 02:56:35 +08:00

37 lines
1.0 KiB
Python

from typing import TypedDict, type_check_only
from numpy import uint64
from numpy._typing import _ArrayLikeInt_co
from numpy.random.bit_generator import BitGenerator, SeedSequence
from numpy.typing import NDArray
__all__ = ["Philox"]
@type_check_only
class _PhiloxInternal(TypedDict):
counter: NDArray[uint64]
key: NDArray[uint64]
@type_check_only
class _PhiloxState(TypedDict):
bit_generator: str
state: _PhiloxInternal
buffer: NDArray[uint64]
buffer_pos: int
has_uint32: int
uinteger: int
class Philox(BitGenerator):
def __init__(
self,
seed: _ArrayLikeInt_co | SeedSequence | None = ...,
counter: _ArrayLikeInt_co | None = ...,
key: _ArrayLikeInt_co | None = ...,
) -> None: ...
@property # type: ignore[override]
def state(self) -> _PhiloxState: ... # pyrefly: ignore[bad-override]
@state.setter
def state(self, value: _PhiloxState) -> None: ...
def jumped(self, jumps: int = 1) -> Philox: ...
def advance(self, delta: int) -> Philox: ...