Skip to content

Commit

Permalink
Add __repr__ to example.
Browse files Browse the repository at this point in the history
  • Loading branch information
dangle committed Nov 12, 2017
1 parent 214ee4e commit 4cb33c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ such as to types annotated using the ``typing`` module:
self.y = y
def __repr__(self):
return f'Point(x={self.x}, y={self.y})''
return f'Point(x={self.x}, y={self.y})'
def __setattr__(self, name, value):
if name in ('x', 'y'):
Expand Down

0 comments on commit 4cb33c4

Please sign in to comment.