Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TYP: npt._ArrayLikeInt_co does not exist #61387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jorenham opened this issue May 1, 2025 · 0 comments
Open

TYP: npt._ArrayLikeInt_co does not exist #61387

jorenham opened this issue May 1, 2025 · 0 comments
Labels
Typing type annotations, mypy/pyright type checking

Comments

@jorenham
Copy link

jorenham commented May 1, 2025

NumpySorter = Optional[npt._ArrayLikeInt_co] # type: ignore[name-defined]

I wouldn't recommend using these private internal type-aliases at all, but if you must, then you probably should import it from numpy._typing, because it is not exported by numpy.typing.

@asishm asishm added the Typing type annotations, mypy/pyright type checking label May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

No branches or pull requests

2 participants