pulp icon indicating copy to clipboard operation
pulp copied to clipboard

Type Hints for pulp variables

Open davidggphy opened this issue 3 years ago • 1 comments

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.

davidggphy avatar Aug 23 '22 23:08 davidggphy

Both are valid. I recommend pulp.LpVariable which is what we use in documentation.

pchtsp avatar Aug 24 '22 14:08 pchtsp