From d154a7989c5c189aa51e563279a4f0349dbddfc9 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 10 Aug 2022 13:26:01 +0530 Subject: [PATCH] Common: Don't pass 'data' argument to IEventQueue's publish() --- monkey/common/event_queue/i_event_queue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/common/event_queue/i_event_queue.py b/monkey/common/event_queue/i_event_queue.py index e33d12083..ae9371ba4 100644 --- a/monkey/common/event_queue/i_event_queue.py +++ b/monkey/common/event_queue/i_event_queue.py @@ -1,5 +1,5 @@ from abc import ABC, abstractmethod -from typing import Any, Callable +from typing import Callable from common.events import AbstractEvent @@ -44,7 +44,7 @@ class IEventQueue(ABC): pass @abstractmethod - def publish(self, event: AbstractEvent, data: Any): + def publish(self, event: AbstractEvent): """ Publishes an event with the given data