Created
April 22, 2020 15:02
-
-
Save Ladsgroup/91a64856d71e34dd55570e20cadacc3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WbQuantity(object): | |
def __init__(self, serializaiton): | |
self.amount = serializaiton['amount'] | |
def __eq__(self, other): | |
if isintance(other, str): | |
return self.amount == other | |
return self == other |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment