mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-21 04:56:24 +02:00
Make OSMWay
hashable.
This commit is contained in:
parent
2578d6b80e
commit
d634e7e904
1 changed files with 3 additions and 0 deletions
|
@ -236,6 +236,9 @@ class OSMWay(Tagged):
|
|||
def __repr__(self) -> str:
|
||||
return f"Way <{self.id_}> {self.nodes}"
|
||||
|
||||
def __hash__(self) -> int:
|
||||
return self.id_
|
||||
|
||||
|
||||
@dataclass
|
||||
class OSMMember:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue