]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix optional string representation or repr(PlaceName)
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 29 Jun 2023 20:02:55 +0000 (22:02 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 30 Jun 2023 09:10:44 +0000 (11:10 +0200)
nominatim/data/place_name.py

index 47464e2b323b4c753f7e58e2c433e77dec57ea59..abba3544e5025b09051a7ae220ec2e77d3fa2930 100644 (file)
@@ -34,7 +34,7 @@ class PlaceName:
 
 
     def __repr__(self) -> str:
 
 
     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,
 
 
     def clone(self, name: Optional[str] = None,