Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/scipy/_lib/array_api_compat/common/_typing.py: 0%
10 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-03 06:39 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-03 06:39 +0000
1from __future__ import annotations
3__all__ = [
4 "NestedSequence",
5 "SupportsBufferProtocol",
6]
8from typing import (
9 Any,
10 TypeVar,
11 Protocol,
12)
14_T_co = TypeVar("_T_co", covariant=True)
16class NestedSequence(Protocol[_T_co]):
17 def __getitem__(self, key: int, /) -> _T_co | NestedSequence[_T_co]: ...
18 def __len__(self, /) -> int: ...
20SupportsBufferProtocol = Any
22Array = Any
23Device = Any