tuple from typing

This commit is contained in:
Aleksander Szamałek 2022-05-27 00:18:58 +02:00
parent 13e5c5d62c
commit 9fde24439c

View File

@ -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)