summaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/numpy/typing/tests/data/fail/arrayprint.pyi
blob: 224a4105b8a64b458d64b20c16cb8c52056e6b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from collections.abc import Callable
from typing import Any

import numpy as np
import numpy.typing as npt

AR: npt.NDArray[np.float64]
func1: Callable[[Any], str]
func2: Callable[[np.integer], str]

np.array2string(AR, style=None)  # type: ignore[call-overload]
np.array2string(AR, legacy="1.14")  # type: ignore[call-overload]
np.array2string(AR, sign="*")  # type: ignore[call-overload]
np.array2string(AR, floatmode="default")  # type: ignore[call-overload]
np.array2string(AR, formatter={"A": func1})  # type: ignore[call-overload]
np.array2string(AR, formatter={"float": func2})  # type: ignore[call-overload]