(scale)
return scale
Returns the scale guaranteed to be a positive integer.
Returns the scale guaranteed to be a positive integer.
Returns the scale guaranteed to be a positive integer .
def _get_validated_scale(scale):
  """Returns the scale guaranteed to be a positive integer."""
  scale = int(scale)
  if scale <= 0:
    raise ValueError('`scale` must be a positive integer.')
  return scale
def _get_validated_scale ( scale ) : scale = int ( scale ) if scale <= 0 : raise ValueError ( '`scale` must be a positive integer.' ) return scale