From 6c5589c9d26c2ad21318798f0e46421fbf545a05 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 29 Jun 2023 22:02:55 +0200 Subject: [PATCH] fix optional string representation or repr(PlaceName) --- nominatim/data/place_name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.5