linopy icon indicating copy to clipboard operation
linopy copied to clipboard

Docstring of `Model.solve()` has wrong return type

Open leuchtum opened this issue 11 months ago • 0 comments

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

leuchtum avatar Mar 19 '24 16:03 leuchtum