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
$ python3 -m venv v
$ source v/bin/activate
(v) $ pip install feedparser mypy
...
(v) $ mypy t.py
t.py:1: error: Skipping analyzing "feedparser": module is installed, but missing library stubs or py.typed marker [import]
t.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)
I see py.typed is present in the source code. If I manually download the current *.whl from pypi, I do not see py.typed.
If I clone the repo locally and do pip install ., then I see py.typed in my venv and mypy type-checks the test file. (This also required pip install chardet types-requests for further typing dependencies)
If I do pip wheel . in a local clone, I do see py.typed in the *.whl.
Perhaps something is going wrong at a packaging step? I couldn't find any packaging/publishing workflow in the github actions config, so I can't diagnose further.
The text was updated successfully, but these errors were encountered:
Given
A straightforward type-check fails:
I see
py.typed
is present in the source code. If I manually download the current*.whl
from pypi, I do not seepy.typed
.If I clone the repo locally and do
pip install .
, then I seepy.typed
in my venv andmypy
type-checks the test file. (This also requiredpip install chardet types-requests
for further typing dependencies)If I do
pip wheel .
in a local clone, I do seepy.typed
in the*.whl
.Perhaps something is going wrong at a packaging step? I couldn't find any packaging/publishing workflow in the github actions config, so I can't diagnose further.
The text was updated successfully, but these errors were encountered: