Update 'city.py'
This commit is contained in:
parent
cf525c5c4b
commit
9f7ca5d0ed
4
city.py
4
city.py
@ -12,14 +12,14 @@ class Node:
|
||||
self.can = can
|
||||
|
||||
class City:
|
||||
nodes: List[Node]
|
||||
nodes: List[GarbageCan]
|
||||
streets: List[Street]
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.nodes = []
|
||||
self.streets = []
|
||||
|
||||
def add_node(self, node: Node) -> None:
|
||||
def add_node(self, node: GarbageCan) -> None:
|
||||
self.nodes.append(node)
|
||||
|
||||
def add_street(self, street: Street) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user