Common: Rename common/events/ -> common/agent_events/

This commit is contained in:
Shreya Malviya 2022-09-16 18:16:20 +05:30 committed by Mike Salvatore
parent e2fed84985
commit b5736fdd3e
10 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
from typing import Type, Union
from common.agent_event_serializers import IAgentEventSerializer
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
class AgentEventSerializerRegistry:

View File

@ -1,7 +1,7 @@
from abc import ABC, abstractmethod
from typing import Dict, List, Union
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
JSONSerializable = Union[ # type: ignore[misc]
Dict[str, "JSONSerializable"], # type: ignore[misc]

View File

@ -1,7 +1,7 @@
import logging
from typing import Generic, Type, TypeVar
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
from common.utils.code_utils import del_key
from . import EVENT_TYPE_FIELD, IAgentEventSerializer, JSONSerializable

View File

@ -1,4 +1,4 @@
from common.events import CredentialsStolenEvent
from common.agent_events import CredentialsStolenEvent
from . import AgentEventSerializerRegistry, PydanticAgentEventSerializer

View File

@ -1,7 +1,7 @@
from abc import ABC, abstractmethod
from typing import Type
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
from . import AgentEventSubscriber

View File

@ -3,8 +3,8 @@ from typing import Type
from pubsub.core import Publisher
from common.agent_events import AbstractAgentEvent
from common.event_queue import PyPubSubPublisherWrapper
from common.events import AbstractAgentEvent
from . import AgentEventSubscriber, IAgentEventQueue

View File

@ -1,5 +1,5 @@
from typing import Callable
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
AgentEventSubscriber = Callable[[AbstractAgentEvent], None]