Dashboard
PHP:
8.3.33
OS:
Linux
User:
proje374
/
/
usr
/
local
/
lib64
/
python3.9
/
site-packages
/
numpy
/
typing
/
tests
/
data
/
reveal
đ€ Upload
đ New File
đ New Folder
Close
Editing: false_positives.pyi
import sys from typing import Any import numpy as np import numpy.typing as npt if sys.version_info >= (3, 11): from typing import assert_type else: from typing_extensions import assert_type AR_Any: npt.NDArray[Any] # Mypy bug where overload ambiguity is ignored for `Any`-parametrized types; # xref numpy/numpy#20099 and python/mypy#11347 # # The expected output would be something akin to `npt.NDArray[Any]` assert_type(AR_Any + 2, npt.NDArray[np.signedinteger[Any]])
Save
Cancel