Could I get some help understanding what the pylint message Signature differs from overidden 'save' method, pylint(signature-differs) is referring to?:
def save(self, *args, **kwargs):
"""
Override the original save method and update the number of
seats available
"""
reservations = (
Booking.objects.aggregate(
num_passengers=Count("passengers")
)
["num_passengers"] or 0
)
self.seats_available = self.destination.max_passengers - reservations
super().save(*args, **kwargs)
The Django docs says "If you use *args, **kwargs in your method definitions, you are guaranteed that your code will automatically support those (updated method) arguments when they are added."
I don't fully comprehend how signatures work but my understanding is that it's to do with making sure parameters match. In this case I don't think I have changed anything from the default save method...so what is causing the issue?