mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
fix optional string representation or repr(PlaceName)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user