Voice et bot modif

This commit is contained in:
pi 2026-06-16 17:09:34 +00:00
parent 189d56026b
commit 7333a22bcd
10774 changed files with 634644 additions and 933308 deletions

View file

@ -1,5 +1,5 @@
from collections.abc import Sequence # noqa: F811
from typing import Any, Protocol, TypeAlias, TypedDict, TypeVar
from collections.abc import Sequence
from typing import Any, Protocol, TypeAlias, TypedDict, TypeVar, runtime_checkable
import numpy as np
@ -41,11 +41,13 @@ class _DTypeDict(_DTypeDictBase, total=False):
aligned: bool
@runtime_checkable
class _HasDType(Protocol[_DTypeT_co]):
@property
def dtype(self) -> _DTypeT_co: ...
@runtime_checkable
class _HasNumPyDType(Protocol[_DTypeT_co]):
@property
def __numpy_dtype__(self, /) -> _DTypeT_co: ...

View file

@ -1,14 +1,20 @@
"""A module containing the `_NestedSequence` protocol."""
from typing import TYPE_CHECKING, Any, Protocol, TypeVar, runtime_checkable
from typing import TYPE_CHECKING, Any, Protocol, runtime_checkable
if TYPE_CHECKING:
from collections.abc import Iterator
from typing_extensions import TypeVar
_T_co = TypeVar("_T_co", covariant=True, default=Any)
else:
from typing import TypeVar
_T_co = TypeVar("_T_co", covariant=True)
__all__ = ["_NestedSequence"]
_T_co = TypeVar("_T_co", covariant=True)
@runtime_checkable
class _NestedSequence(Protocol[_T_co]):