Rearrange a lower/upper bound pair into a lower/equality/upper
bound triple, according to whether or not the lower and upper
bound are identical numerical values or expressions.
Note
This method is meant to behave in a manner akin to that of
ConstraintData.equality, in which a ranged inequality
constraint may be considered an equality constraint if
the lower and upper attributes of the constraint
are identical and not None.