Assigning a variable to itself is redundant and often an indication of a mistake in the code.

Check the assignment carefully for mistakes. If the assignment is truly redundant and not simply incorrect then remove it.

In this example the programmer clearly intends to assign to self.eggs but made a mistake.

  • Python Language Reference: The assignment statement.