Skip to content

Commit b3330a4

Browse files
authored
Remove __repr__s from docs and examples (#1136)
1 parent 1171761 commit b3330a4

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

docs/optimistic_locking.rst

-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ To enable optimistic locking for a table simply add a ``VersionAttribute`` to yo
2929
def __eq__(self, other):
3030
return isinstance(other, OfficeEmployeeMap) and self.person == other.person
3131
32-
def __repr__(self):
33-
return str(vars(self))
34-
3532
3633
class Office(Model):
3734
class Meta:

examples/attributes.py

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class Color(object):
1717
def __init__(self, name: str) -> None:
1818
self.name = name
1919

20-
def __repr__(self) -> str:
21-
return "<Color: {}>".format(self.name)
22-
2320

2421
class PickleAttribute(Attribute[object]):
2522
"""

examples/optimistic_locking.py

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ class OfficeEmployeeMap(MapAttribute):
1616
def __eq__(self, other):
1717
return isinstance(other, OfficeEmployeeMap) and self.person == other.person
1818

19-
def __repr__(self):
20-
return str(vars(self))
21-
2219

2320
class Office(Model):
2421
class Meta:

0 commit comments

Comments
 (0)