Browse Source

Enum

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

2
README.md

@ -463,7 +463,7 @@ class <name>:
def __init__(self, a): def __init__(self, a):
self.a = a self.a = a
def __repr__(self): def __repr__(self):
# To return string of all members use: return f'{self.__dict__}'
# To return string of all members use: return f'{self.__dict__}'.
return str({'a': self.a}) return str({'a': self.a})
def __str__(self): def __str__(self):
return str(self.a) return str(self.a)

Loading…
Cancel
Save