# module for abstarct classes from abc import ABC, abstractmethod # type hints from typing import Tuple # Mine cannot be instatinated # all abstarct methods must be implemented in derived classes class Mine(ABC): @abstractmethod def __init__(self, position: Tuple[int, int], active=True): self.position = position self.active = active @abstractmethod def disarm(self): pass