Skip to content

Commit

Permalink
Merge pull request #11 from johnomotani/withmeta-repr
Browse files Browse the repository at this point in the history
Add WithMeta.__repr__() method
  • Loading branch information
johnomotani authored May 5, 2020
2 parents b2c47cd + b85da95 commit ac74a68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions optionsfactory/withmeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ def __eq__(self, other):
)

def __str__(self):
return self.__repr__()

def __repr__(self):
return (
f"WithMeta({self.value}, doc={self.doc}, value_type={self.value_type}), "
f"allowed={self.allowed}, check_all={self.check_all}, "
Expand Down

0 comments on commit ac74a68

Please sign in to comment.