Ajout type contrat

This commit is contained in:
2026-04-29 11:52:03 +02:00
parent 375549cb30
commit 1c0e4c3048
10530 changed files with 1842149 additions and 158 deletions

View File

@@ -0,0 +1,16 @@
from collections.abc import Callable
from typing import Any, NamedTuple, TypeAlias
import numpy as np
__all__: list[str] = ["interface"]
_CDataVoidPointer: TypeAlias = Any
class interface(NamedTuple):
state_address: int
state: _CDataVoidPointer
next_uint64: Callable[..., np.uint64]
next_uint32: Callable[..., np.uint32]
next_double: Callable[..., np.float64]
bit_generator: _CDataVoidPointer