Remove a setter for a frozen dataclass

You cannot set that anyway.
styling
LEdoian 1 year ago
parent a47f3849dd
commit 18b695462d

@ -191,10 +191,6 @@ class VertexID:
@property @property
def is_network(self): return not self.is_router def is_network(self): return not self.is_router
@is_network.setter
def _set_network(self, val: bool):
assert isinstance(val, bool)
self.is_router = not val
@dataclass @dataclass
class Vertex: class Vertex:

Loading…
Cancel
Save