From 90b8f5883a359fd93eaba7d51a10e2c356dcd625 Mon Sep 17 00:00:00 2001 From: Christian Studer Date: Wed, 20 Nov 2024 13:36:19 +0100 Subject: [PATCH] fix: [MISPAnalystData] Added missing typing --- pymisp/mispevent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymisp/mispevent.py b/pymisp/mispevent.py index 2cf15b2f..bd466eda 100644 --- a/pymisp/mispevent.py +++ b/pymisp/mispevent.py @@ -2533,7 +2533,7 @@ def __init__(self, **kwargs: dict[str, Any]) -> None: self.SharingGroup: MISPSharingGroup self._analyst_data_object_type: str # Must be defined in the child class - def add_note(self, note: str, language: str | None = None, object_uuid: str | None = None, object_type: str | None = None, parent: MISPEvent | MISPAttribute | MISPObject | MISPEventReport | None = None, **kwargs) -> MISPNote: + def add_note(self, note: str, language: str | None = None, object_uuid: str | None = None, object_type: str | None = None, parent: MISPEvent | MISPAttribute | MISPObject | MISPEventReport | None = None, **kwargs: dict[str, Any]) -> MISPNote: misp_note = MISPNote() if object_uuid is None: object_uuid = self.uuid @@ -2554,7 +2554,7 @@ def add_note(self, note: str, language: str | None = None, object_uuid: str | No self.edited = True return misp_note - def add_opinion(self, opinion: int, comment: str | None = None, object_uuid: str | None = None, object_type: str | None = None, parent: MISPEvent | MISPAttribute | MISPObject | MISPEventReport | None = None, **kwargs) -> MISPOpinion: + def add_opinion(self, opinion: int, comment: str | None = None, object_uuid: str | None = None, object_type: str | None = None, parent: MISPEvent | MISPAttribute | MISPObject | MISPEventReport | None = None, **kwargs: dict[str, Any]) -> MISPOpinion: misp_opinion = MISPOpinion() if object_uuid is None: object_uuid = self.uuid