]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
make sure `__repr__` is used for underlying properties
authorDoctor <thirvondukr@gmail.com>
Thu, 28 Apr 2022 04:50:02 +0000 (07:50 +0300)
committerDoctor <thirvondukr@gmail.com>
Thu, 28 Apr 2022 04:50:02 +0000 (07:50 +0300)
doc/build/orm/composites.rst

index 295139b3f7bc87d7eae2f04ee8cacad1030a2bd5..b2fffce7c3061e97c9f81d4dde18cd72ceff23a2 100644 (file)
@@ -26,7 +26,7 @@ A simple example represents pairs of columns as a ``Point`` object.
             return self.x, self.y
 
         def __repr__(self):
-            return f"Point(x={self.x}, y={self.y})"
+            return f"Point(x={self.x!r}, y={self.y!r})"
 
         def __eq__(self, other):
             return (