Browse Source

Enum

pull/3/head
Jure Šorn 5 years ago
parent
commit
9bf4de1848
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):
self.a = a
def __repr__(self):
# To return all members use: return f'{self.__dict__}'
# To return string of all members use: return f'{self.__dict__}'
return str({'a': self.a})
def __str__(self):
return str(self.a)

Loading…
Cancel
Save