pulp
pulp copied to clipboard
Type Hints for pulp variables
Let assume I import pulp as
import pulp
When using type hints in pulp, should I use pulp.pulp.LpVariable or pulp.LpVariable.
When using type(variable) it returns pulp.pulp.LpVariable.
I assume that the same applied to affine expressions and other pulp objects.
Both are valid. I recommend pulp.LpVariable which is what we use in documentation.