linopy
linopy copied to clipboard
Docstring of `Model.solve()` has wrong return type
Docstring of Model.solve
defines return type as Model
:
https://github.com/PyPSA/linopy/blob/ecbc96266e3195b756fa528ff2faa4afe9243743/linopy/model.py#L996-L999
But a tuple of status and termination condition is returned in line 1085 and line 1111:
https://github.com/PyPSA/linopy/blob/ecbc96266e3195b756fa528ff2faa4afe9243743/linopy/model.py#L1085 https://github.com/PyPSA/linopy/blob/ecbc96266e3195b756fa528ff2faa4afe9243743/linopy/model.py#L1111