Sep-17-2020, 01:08 PM
USD does not work either. You are subclassing from Money, which results in a conflict between the __new__ and __init__ routines. __new__ wants a currency but you are not giving one. If you supply a currency with your call in line 9 you now have too many arguments for your __init__ that you are trying to override.
At least from this code, it's far simpler just to use the Money functions and not subclass.
At least from this code, it's far simpler just to use the Money functions and not subclass.