Skip to content

Commit

Permalink
fix: [MISPAnalystData] Added missing typing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisr3d committed Nov 20, 2024
1 parent 6ca367d commit 90b8f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymisp/mispevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 90b8f58

Please sign in to comment.