jbarnett-bdai
jbarnett-bdai
Initial error, along with version info: ``` jbarnett@jbarnett-LT:~/spatialmath-python$ mypy --version mypy 0.942 jbarnett@jbarnett-LT:~/spatialmath-python$ python --version Python 3.10.12 jbarnett@jbarnett-LT:~/spatialmath-python$ mypy spatialmath spatialmath/geom3d.py:717: error: Invalid "type: ignore" comment spatialmath/geom3d.py:736: error: Invalid "type:...
Next up: ``` jbarnett@jbarnett-LT:~/spatialmath-python$ mypy spatialmath /home/jbarnett/.local/lib/python3.10/site-packages/numpy/__init__.pyi:651: error: Positional-only parameters are only supported in Python 3.8 and greater Found 1 error in 1 file (errors prevented further checking) ``` Even...
After upgrading `mypy` (by adding it as a `dev` dependency, and installing a virtual environment): ``` (.venv) jbarnett@jbarnett-LT:~/spatialmath-python$ mypy --version mypy 1.13.0 (compiled: yes) (.venv) jbarnett@jbarnett-LT:~/spatialmath-python$ mypy spatialmath spatialmath/timing.py:11: error:...
Focusing on ``` spatialmath/base/_types_311.py:3: error: Module "typing" has no attribute "Self" [attr-defined] spatialmath/base/_types_311.py:3: note: Use `from typing_extensions import Self` instead spatialmath/base/_types_311.py:3: note: See https://mypy.readthedocs.io/en/stable/runtime_troubles.html#using-new-additions-to-the-typing-module spatialmath/base/types.py:9: error: Incompatible import of "SE2Array"...
Fixing that reveals more problems: ``` (.venv) jbarnett@jbarnett-LT:~/spatialmath-python$ mypy spatialmath spatialmath/timing.py:11: error: Skipping analyzing "ansitable": module is installed, but missing library stubs or py.typed marker [import-untyped] spatialmath/base/symbolic.py:19: error: Skipping analyzing...
Addressing ``` spatialmath/base/argcheck.py:291: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader [overload-cannot-match] spatialmath/base/argcheck.py:301: error: Overloaded function signature 3 will never...
Various imports don't have types or stubs available; `# type: ignore` is an appropriate solution for these (until stubs are available).