From: Doctor Date: Thu, 28 Apr 2022 04:50:02 +0000 (+0300) Subject: make sure `__repr__` is used for underlying properties X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d84473223bc5b0bbf1853d95b04cbbc82e43bf1e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git make sure `__repr__` is used for underlying properties --- diff --git a/doc/build/orm/composites.rst b/doc/build/orm/composites.rst index 295139b3f7..b2fffce7c3 100644 --- a/doc/build/orm/composites.rst +++ b/doc/build/orm/composites.rst @@ -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 (