Python Object-Oriented Python Advanced Objects Double

Error

Bummer: RuntimeError: super(): no arguments

Please help me understand why I am I getting this error?

doubler.py
class Double(int):

    def __new__(*args, **kwargs):
        instance = super().__new__(*args, **kwargs)
        return instance

1 Answer

Steven Parker
Steven Parker
207,980 Points

Hint: Try using "int" instead of "super()".