fix: Make mypy happy in python 3.6 and 3.7

pull/749/head
Raphaël Vinot 2021-03-02 12:37:35 +01:00
parent 9f7282e8f4
commit 4a2367ec96
1 changed files with 2 additions and 0 deletions

View File

@ -1203,6 +1203,7 @@ class MISPGalaxyCluster(AbstractMISP):
self.Org: MISPOrganisation
self.Orgc: MISPOrganisation
self.SharingGroup: MISPSharingGroup
self.value: str
# Set any inititialized cluster to be False
self.default = False
@ -1345,6 +1346,7 @@ class MISPGalaxy(AbstractMISP):
def __init__(self):
super().__init__()
self.GalaxyCluster: List[MISPGalaxyCluster] = []
self.name: str
def from_dict(self, **kwargs):
"""Galaxy could be in one of the following formats: