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

1from __future__ import annotations 

2 

3__all__ = [ 

4 "NestedSequence", 

5 "SupportsBufferProtocol", 

6] 

7 

8from typing import ( 

9 Any, 

10 TypeVar, 

11 Protocol, 

12) 

13 

14_T_co = TypeVar("_T_co", covariant=True) 

15 

16class NestedSequence(Protocol[_T_co]): 

17 def __getitem__(self, key: int, /) -> _T_co | NestedSequence[_T_co]: ... 

18 def __len__(self, /) -> int: ... 

19 

20SupportsBufferProtocol = Any 

21 

22Array = Any 

23Device = Any