I did this using
pygame.Rect, but it appears to be the same for most things.
If I have a code like so:
class MyRect(pygame.Rect): color = (255, 255, 255) def draw(self, screen): screen.fill(self.color, self) r1 = MyRect() r2 = r1.copy() r2.draw()
It will raise an error:
AttributeError: 'pygame.Rect' object has no attribute 'draw'
.copy() was a classmethod instead, it would create a copy of
MyRect instead. Now I have to manually override