I have a situation when I need to overwrite parent method but only in one line. My initial code is quite big so I clarify what I mean in an example. I have method from parent:
class parent():
def method(self):
bla
bla
print("Parent method is working")
bla
bla
And child:
class child(parent):
def method(self):
bla
bla
print("Child method working")
bla
bla
As you can see, two methods are pretty much the same but one line is different. Do I have to write the same code in child method just to print different output or there is dark magic in python how to overwrite only one line?