Skip to content

Commit bdd1466

Browse files
jorenhamMaanasArora
authored andcommitted
TYP: remove problematic runtime code from a .pyi test module
1 parent d4c8e49 commit bdd1466

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

numpy/typing/tests/data/reveal/nbit_base_example.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ from numpy._typing import _32Bit, _64Bit
77
T1 = TypeVar("T1", bound=npt.NBitBase) # type: ignore[deprecated] # pyright: ignore[reportDeprecated]
88
T2 = TypeVar("T2", bound=npt.NBitBase) # type: ignore[deprecated] # pyright: ignore[reportDeprecated]
99

10-
def add(a: np.floating[T1], b: np.integer[T2]) -> np.floating[T1 | T2]:
11-
return a + b
10+
def add(a: np.floating[T1], b: np.integer[T2]) -> np.floating[T1 | T2]: ...
1211

1312
i8: np.int64
1413
i4: np.int32

0 commit comments

Comments
 (0)