decimal_places set to None, unpacked list args and unpacked dictionary kwargs. substitute max_digits and decimal_places for self.max_digits and self.decimal_places.
self . max_digits , self . decimal_places = max_digits , decimal_places