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
tl;drmypy reports error when reviewing a file with import fxpmath: error: Skipping analyzing "fxpmath": module is installed, but missing library stubs or py.typed marker [import-untyped]
Problem
Running mypy against a Python file that imports fxpmath fails with error
PS> mypy .\testA.py
testA.py:1: error: Skipping analyzing "fxpmath": module is installed, but missing library stubs or py.typed marker [import-untyped]
testA.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Reproduction
Using Python 3.8.10
Create a simple Python file testA.py
import fxpmath
if __name__ == "__main__":
print(str(dir(fxpmath)))
Run mypy against the simple Python file testA.py. Use a virtual environment.
PS> python -m virtualenv --copies .virtualenv
PS> .\.virtualenv\Scripts\activate.ps1
PS> pip install fxpmath mypy
PS> mypy .\testA.py
testA.py:1: error: Skipping analyzing "fxpmath": module is installed, but missing library stubs or py.typed marker [import-untyped]
testA.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
This installed fxpmath version 0.4.9, mypy version 1.8.0.
This bug was tested on Windows 10. This bug should occur on every Python platform.
Solution
One of:
Provide py.typed markers in fxpmath as suggested by mypy
Provide a types-fxpmath types stub package (similar to, for example, types-setuptools).
The text was updated successfully, but these errors were encountered:
tl;dr
mypy
reports error when reviewing a file withimport fxpmath
:error: Skipping analyzing "fxpmath": module is installed, but missing library stubs or py.typed marker [import-untyped]
Problem
Running mypy against a Python file that imports
fxpmath
fails with errorReproduction
Using Python 3.8.10
Create a simple Python file
testA.py
Run
mypy
against the simple Python filetestA.py
. Use a virtual environment.This installed
fxpmath
version 0.4.9,mypy
version 1.8.0.This bug was tested on Windows 10. This bug should occur on every Python platform.
Solution
One of:
fxpmath
as suggested by mypytypes-fxpmath
types stub package (similar to, for example,types-setuptools
).The text was updated successfully, but these errors were encountered: