Tim Ohliger
Tim Ohliger
mypy now does not complain about anything in the stub files (I applied #6896 as well though), but has two errors in the example code: ```bash mypy examples/python/geometry/triangle_mesh_with_numpy.py examples/python/geometry/triangle_mesh_with_numpy.py:14: error:...
288d51d also seems to cause an error in CI: ```bash Traceback (most recent call last): File "", line 1, in File "/home/runner/work/Open3D/Open3D/open3d_test.venv/lib/python3.11/site-packages/open3d/__init__.py", line 61, in load_cdll(str(next((Path(__file__).parent / "cpu").glob("pybind*")))) File "/home/runner/work/Open3D/Open3D/open3d_test.venv/lib/python3.11/site-packages/open3d/__init__.py",...
[70b3f81](https://github.com/isl-org/Open3D/pull/6917/commits/70b3f81767df968d3b7e644efadbb515b3757817) fixes `fs::path` python typing by changing it from `os.PathLike` to `Union[os.PathLike, str]` which is translated to `os.PathLike | str` by pybind11-stubgen and sphinx-docs. It was actually easier to change...
Some notes (mostly for myself, but happy for any help/advice) regarding implicit list -> np.ndarray conversions causing mypy errors like this: ```python mypy examples/python/geometry/triangle_mesh_with_numpy.py examples/python/geometry/triangle_mesh_with_numpy.py:15: error: Argument 1 to "paint_uniform_color"...
I have opened a pull request at pybind/pybind11#5358 to add a feature for adding different type hints for args and return types. That PR would be the cleanest solution in...
Just a quick update: I do not have so much time this month but I hopefully can start working on this again next month. Some notes on what to do...
My pybind11 pull request pybind/pybind11#5450 to fix the type hint for `fs::path` is making good progress and lays the foundation to improve typing of Eigen/Numpy classes. That part might take...
My pull request pybind/pybind11#5450 fixing `fs::path` type hints was successfully merged into pybind11. :) Next, I will try to work correct type hints for np.array/Eigen into pybind11. I also created...
### Latest progress update: I managed to get rid of all mypy errors from the examples in my fork [timohl/Open3D:pybind11-test](https://github.com/timohl/Open3D/tree/pybind11-test) 🎉 ```bash > mypy --ignore-missing-imports examples/python/ Success: no issues found...
You can already get partial stubs working without compiling: ```bash pip install open3d pybind11-stubgen # Make sure to first create/activate your venv pybind11-stubgen open3d -o typings ``` The default path...