From: Sarah Hoffmann Date: Thu, 29 Jun 2023 20:02:55 +0000 (+0200) Subject: fix optional string representation or repr(PlaceName) X-Git-Tag: v4.3.0~59^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/6c5589c9d26c2ad21318798f0e46421fbf545a05?ds=sidebyside fix optional string representation or repr(PlaceName) --- diff --git a/nominatim/data/place_name.py b/nominatim/data/place_name.py index 47464e2b..abba3544 100644 --- a/nominatim/data/place_name.py +++ b/nominatim/data/place_name.py @@ -34,7 +34,7 @@ class PlaceName: def __repr__(self) -> str: - return f"PlaceName(name='{self.name}',kind='{self.kind}',suffix='{self.suffix}')" + return f"PlaceName(name={self.name!r},kind={self.kind!r},suffix={self.suffix!r})" def clone(self, name: Optional[str] = None,