oemof / tespy

Thermal Engineering Systems in Python (TESPy). This package provides a powerful simulation toolkit for thermal engineering plants such as power plants, district heating systems or heat pumps.
https://tespy.readthedocs.io
MIT License
256 stars 80 forks source link

Instead of calling methods from parent classes make use of __super__() method #378

Closed fwitte closed 1 year ago

fwitte commented 1 year ago

I quite a lot of places, methods of parent classes are used by importing the parent class and calling the method with something like

import ParentClass

ParentClass.method()

The correct way to do this is

super().method()

Also see https://stackoverflow.com/questions/576169/understanding-python-super-with-init-methods