from itertools import count from data.enum.ItemType import ItemType class Item: id_counter = count(start=0) def __init__(self, item_type: ItemType, image): self.id = next(self.id_counter) self.real_type = item_type self.image = image self.guessed_type = None def __repr__(self) -> str: return "|real: {} -- guessed: {}| \n".format(self.real_type, self.guessed_type)