From a03615721825959d3d9e24a650b0f4f383cef0e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 28 Nov 2018 23:55:16 +0100 Subject: [PATCH] Enum --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5eadc9f..13b9ff8 100644 --- a/README.md +++ b/README.md @@ -462,10 +462,10 @@ Class class : def __init__(self, a): self.a = a - def __repr__(self): - return str({'a': self.a}) # Or: return f'{self.__dict__}' def __str__(self): return str(self.a) + def __repr__(self): + return str({'a': self.a}) # Or: return f'{self.__dict__}' @classmethod def get_class_name(cls):