Skip to content

Commit 1e9efbf

Browse files
committed
stub numpy.random._common
1 parent 2fd2491 commit 1e9efbf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

numpy/random/_common.pyi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from collections.abc import Callable
2+
from typing import Any, NamedTuple, TypeAlias
3+
4+
import numpy as np
5+
6+
__all__: list[str] = ["interface"]
7+
8+
_CDataVoidPointer: TypeAlias = Any
9+
10+
class interface(NamedTuple):
11+
state_address: int
12+
state: _CDataVoidPointer
13+
next_uint64: Callable[..., np.uint64]
14+
next_uint32: Callable[..., np.uint32]
15+
next_double: Callable[..., np.float64]
16+
bit_generator: _CDataVoidPointer

0 commit comments

Comments
 (0)