I looked at that image. That is some of the worst code I've seen. Your code is so much better. They set the dunder methods as class variables with all this get and set stuff.
You should never take control away from the user of your class. That entire if statement should have returned either a value or a boolean. Just kidding. :)
You should never take control away from the user of your class. That entire if statement should have returned either a value or a boolean. Just kidding. :)