Skip to content

Commit a2a5b30

Browse files
Bas van BeekBvB93
authored andcommitted
ENH: Add annotations for PytestTester
1 parent b32b72e commit a2a5b30

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

numpy/_pytesttester.pyi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from typing import List, Iterable
2+
from typing_extensions import Literal as L
3+
4+
__all__: List[str]
5+
6+
class PytestTester:
7+
module_name: str
8+
def __init__(self, module_name: str) -> None: ...
9+
def __call__(
10+
self,
11+
label: L["fast", "full"] = ...,
12+
verbose: int = ...,
13+
extra_argv: None | Iterable[str] = ...,
14+
doctests: L[False] = ...,
15+
coverage: bool = ...,
16+
durations: int = ...,
17+
tests: None | Iterable[str] = ...,
18+
) -> bool: ...

0 commit comments

Comments
 (0)