Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/scipy/_lib/array_api_compat/common/_typing.py: 0%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

8 statements  

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