fix: Typing edge case

pull/665/head
Raphaël Vinot 2020-11-25 09:23:33 +01:00
parent ded44278af
commit 3e1cfc1461
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ class PyMISP:
# At this point, we assume the user tried to add an attribute on an event they don't own # At this point, we assume the user tried to add an attribute on an event they don't own
# Re-try with a proposal # Re-try with a proposal
if isinstance(attribute, (MISPAttribute, dict)): if isinstance(attribute, (MISPAttribute, dict)):
return self.add_attribute_proposal(event_id, attribute, pythonify) return self.add_attribute_proposal(event_id, attribute, pythonify) # type: ignore
if not (self.global_pythonify or pythonify) or 'errors' in new_attribute: if not (self.global_pythonify or pythonify) or 'errors' in new_attribute:
return new_attribute return new_attribute
a = MISPAttribute() a = MISPAttribute()