From 9fde24439cdd75183dac9f6e0a887355e3b937ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksander=20Szama=C5=82ek?= Date: Fri, 27 May 2022 00:18:58 +0200 Subject: [PATCH] tuple from typing --- GameModel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GameModel.py b/GameModel.py index c303fb8..a373124 100644 --- a/GameModel.py +++ b/GameModel.py @@ -1,6 +1,6 @@ import copy from enum import Enum -from typing import List +from typing import List, Tuple from mesa import Model from mesa.space import MultiGrid @@ -18,7 +18,6 @@ from data.Order import Order from data.enum.ItemType import ItemType from decision.Action import Action from decision.ActionType import ActionType -from imageClasification.Classificator import Classificator from pathfinding.PathfinderOnStates import PathFinderOnStates, PathFinderState from util.PathByEnum import PathByEnum from util.PathDefinitions import GridLocation, GridWithWeights @@ -152,7 +151,7 @@ class GameModel(Model): self.agents.append(agent) self.grid.place_agent(agent, p) - def place_packing_stations(self, packing_stations: List[tuple[PatchType, GridLocation]]): + def place_packing_stations(self, packing_stations: List[Tuple[PatchType, GridLocation]]): for p in packing_stations: agent = PatchAgent(self, p[1], p[0]) self.agents.append(agent)