reno.utils.ensure_scalar#

reno.utils.ensure_scalar(operand)#

Convert int/float types into a Scalar type if relevant, otherwise directly return what was passed.

Parameters:

operand (Any)

Return type:

Any