Browse Source

Enum

pull/3/head
Jure Šorn 5 years ago
parent
commit
a036157218
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -462,10 +462,10 @@ Class
class <name>: class <name>:
def __init__(self, a): def __init__(self, a):
self.a = a self.a = a
def __repr__(self):
return str({'a': self.a}) # Or: return f'{self.__dict__}'
def __str__(self): def __str__(self):
return str(self.a) return str(self.a)
def __repr__(self):
return str({'a': self.a}) # Or: return f'{self.__dict__}'
@classmethod @classmethod
def get_class_name(cls): def get_class_name(cls):

Loading…
Cancel
Save