fix: [MISPAnalystData] Added missing typing

pull/1307/head
Christian Studer 2024-11-20 13:36:19 +01:00
parent 6ca367dc25
commit 90b8f5883a
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 2 additions and 2 deletions

View File

@ -2533,7 +2533,7 @@ class MISPAnalystData(AbstractMISP):
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 @@ class MISPAnalystData(AbstractMISP):
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