You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running mypy on a project that uses arcade doesn't seem to be able to make use of the 2222type hints in arcade:
(repro done on Windows 10 with GitBash)
$ python -m venv venv
$ source venv/Scripts/activate
$ pip install arcade==2.4.3
# create mygame.py
import arcade
print(arcade.Sprite())
$ python mygame.py
<arcade.sprite.Sprite object at 0x000001C495549470>
$ pip install mypy
$ mypy mygame.py
mygame.py:1: error: Skipping analyzing 'arcade': found module but no type hints or library stubs
mygame.py:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)
If you run mypy on the arcade repo itself, it does the type hinting as expected. But, if you run mypy on a project that imports arcade, you get failures. Arcade's type hinting was originally exposed to other packages via #533. I'm guessing tthe regression was introduced because the py.typed file was dropped during this commit: f0ff238#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7.
The text was updated successfully, but these errors were encountered:
Running mypy on a project that uses arcade doesn't seem to be able to make use of the 2222type hints in arcade:
(repro done on Windows 10 with GitBash)
If you run mypy on the arcade repo itself, it does the type hinting as expected. But, if you run mypy on a project that imports arcade, you get failures. Arcade's type hinting was originally exposed to other packages via #533. I'm guessing tthe regression was introduced because the
py.typed
file was dropped during this commit: f0ff238#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7.The text was updated successfully, but these errors were encountered: