Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
ufunc_config.pyi22 linesDownload Raw Back to fail
1"""Typing tests for `numpy._core._ufunc_config`."""
2
3import numpy as np
4
5def func1(a: str, b: int, c: float) -> None: ...
6def func2(a: str, *, b: int) -> None: ...
7
8class Write1:
9    def write1(self, a: str) -> None: ...
10
11class Write2:
12    def write(self, a: str, b: str) -> None: ...
13
14class Write3:
15    def write(self, *, a: str) -> None: ...
16
17np.seterrcall(func1)  # type: ignore[arg-type]
18np.seterrcall(func2)  # type: ignore[arg-type]
19np.seterrcall(Write1())  # type: ignore[arg-type]
20np.seterrcall(Write2())  # type: ignore[arg-type]
21np.seterrcall(Write3())  # type: ignore[arg-type]
22 
codekingpro/portable-devtools · Team Ai