-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
stubtest crashes on @override
+ @overload
#18814
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
Comments
It's too late at night for me to figure out how to get uv to look at my editable install, but I'd bet that #18815 would fix |
You mean
If you give me a minute, I can verify if it works. |
repro branch: https://github.com/numpy/numtype/tree/mypy-18814 |
When I annotate a method as
and run
stubtest
withmypy 1.15.0
, I see the following tracebackThe decoration order is irrelevant.
Some context
$ uv run python -c "import sys; print(sys.version)" 3.13.2 (main, Feb 7 2025, 04:13:54) [GCC 11.4.0] $ uv run mypy --version mypy 1.15.0 (compiled: yes) $ uv run stubtest --version stubtest 1.15.0
Reproducing
@override
toStringDType.__new__
insrc/numpy-stubs/dtypes.pyi
uv run tool/stubtest.py
The text was updated successfully, but these errors were encountered: