- def __init__(self, centcount, currency: str = 'USD', *, strict_mode=False):
+ def __init__(
+ self,
+ centcount: Union[int, float, str, 'CentCount'] = 0,
+ currency: str = 'USD',
+ *,
+ strict_mode=False,
+ ):
+ """
+ Args:
+ centcount: the amount of money being represented; this can be
+ a float, int, CentCount or str.
+ currency: optionally declare the currency being represented by
+ this instance. If provided it will guard against operations
+ such as attempting to add it to non-matching currencies.
+ strict_mode: if True, the instance created will object if you
+ compare or aggregate it with non-CentCount objects; that is,
+ strict_mode disallows comparison with literal numbers or
+ aggregation with literal numbers.
+ """