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
As a rhino3dm Python user, I'd like to have a better experience with autocompletion for functions, classes, and other objects that are available from the package, as well as with optional static type checkers like mypy. I use Visual Studio Code to write Python code, if that matters.
I list hereafter what, in my humble opinion, are flaws that can be fixed:
Missing stubs, e.g., ObjectColorSource. I would have expected something like this in __init__.pyi:
from enum import Enum
class ObjectColorSource(Enum):
ColorFromLayer = 0
ColorFromObject = 1
ColorFromMaterial = 2
ColorFromParent = 3
I am willing to contribute to improve the current stubs, assuming that PR in this regard would be welcome. Kindly let me know.
Not strictly related to this topic, but support for Python 2 should be removed in __init__.py, since it is no longer supported. Furthermore, since you're switching from pybind11 to nanobind and the latter is a Python 3.8+ library, I would issue a warning so users can update their code if this is the case.
The text was updated successfully, but these errors were encountered:
As a
rhino3dm
Python user, I'd like to have a better experience with autocompletion for functions, classes, and other objects that are available from the package, as well as with optional static type checkers likemypy
. I use Visual Studio Code to write Python code, if that matters.I list hereafter what, in my humble opinion, are flaws that can be fixed:
ObjectColorSource
. I would have expected something like this in__init__.pyi
:I am willing to contribute to improve the current stubs, assuming that PR in this regard would be welcome. Kindly let me know.
Not strictly related to this topic, but support for Python 2 should be removed in
__init__.py
, since it is no longer supported. Furthermore, since you're switching frompybind11
tonanobind
and the latter is a Python3.8+
library, I would issue a warning so users can update their code if this is the case.The text was updated successfully, but these errors were encountered: