Browse Source

Enum

pull/3/head
Jure Šorn 6 years ago
parent
commit
49f52b8798
1 changed files with 1 additions and 2 deletions
  1. 3
      README.md

3
README.md

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

Loading…
Cancel
Save