Closed Dr-Irv closed 4 months ago
I can't reproduce the issue in my vscode or running pyright manually (pyright 1.1.363) but would prefer to fix it by defining:
__all__ = ["add_vars", "add_constrs", "set_interactive"]
as the redundancy seems really odd to me. According to pyright's docs this should also do the trick.
This fix is released with version 1.1.2
See the pic of using pylance/pyright in VS Code:
In
gurobipy_pandas/__init__.py
, if I change to this line:Then the error goes away.