Skip to content

Commit

Permalink
fix: Add ABC baseclass to abstrat classes so that they cannot be inst…
Browse files Browse the repository at this point in the history
…antiated
  • Loading branch information
Puckoland committed Oct 3, 2024
1 parent 557e97a commit f1991fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions generals/agents/agent.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from abc import abstractmethod
from abc import ABC, abstractmethod


class Agent:
class Agent(ABC):
"""
Base class for all agents.
"""
Expand Down
4 changes: 2 additions & 2 deletions generals/gui/event_handler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pygame
from enum import Enum
from pygame.event import Event
from abc import abstractmethod
from abc import ABC, abstractmethod

from .properties import Properties
from generals.core import config as c
Expand Down Expand Up @@ -45,7 +45,7 @@ def __init__(self):
super().__init__()


class EventHandler:
class EventHandler(ABC):
def __init__(self, properties: Properties):
"""
Initialize the event handler.
Expand Down

0 comments on commit f1991fb

Please sign in to comment.