Skip to content

Commit 2f33c4f

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 807383e + 2784544 commit 2f33c4f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

stix/extensions/identity/ciq_identity_3_0.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def to_obj(self, return_obj=None):
7979

8080
@classmethod
8181
def from_obj(cls, obj, return_obj=None):
82-
if not obj:
82+
if obj is None:
8383
return None
8484

8585
if not return_obj:
@@ -94,7 +94,7 @@ def from_obj(cls, obj, return_obj=None):
9494
for role in roles:
9595
return_obj.add_role(role)
9696

97-
if specification:
97+
if specification is not None:
9898
return_obj.specification = STIXCIQIdentity3_0.from_obj(specification)
9999

100100
return return_obj
@@ -159,7 +159,7 @@ def party_name(self, value):
159159

160160
@classmethod
161161
def from_obj(cls, obj, return_obj=None):
162-
if not obj:
162+
if obj is None:
163163
return None
164164

165165
if not return_obj:
@@ -257,7 +257,7 @@ def to_obj(self, return_obj=None):
257257

258258
@classmethod
259259
def from_obj(cls, obj, return_obj=None):
260-
if not obj:
260+
if obj is None:
261261
return None
262262

263263
if not return_obj:
@@ -361,7 +361,7 @@ def to_obj(self, return_obj=None):
361361

362362
@classmethod
363363
def from_obj (cls, obj, return_obj=None):
364-
if not obj:
364+
if obj is None:
365365
return None
366366

367367
if not return_obj:
@@ -429,7 +429,7 @@ def to_obj(self, return_obj=None):
429429

430430
@classmethod
431431
def from_obj(cls, obj, return_obj=None):
432-
if not obj:
432+
if obj is None:
433433
return None
434434

435435
if not return_obj:
@@ -514,7 +514,7 @@ def to_obj(self, return_obj=None):
514514

515515
@classmethod
516516
def from_obj(cls, obj, return_obj=None):
517-
if not obj:
517+
if obj is None:
518518
return None
519519

520520
if not return_obj:
@@ -651,7 +651,7 @@ def to_obj(self, return_obj=None):
651651

652652
@classmethod
653653
def from_obj(cls, obj, return_obj=None):
654-
if not obj:
654+
if obj is None:
655655
return None
656656

657657
if not return_obj:
@@ -725,7 +725,7 @@ def to_obj(self, return_obj=None):
725725

726726
@classmethod
727727
def from_obj(cls, obj, return_obj=None):
728-
if not obj:
728+
if obj is None:
729729
return None
730730

731731
if not return_obj:
@@ -803,7 +803,7 @@ def to_obj(self, return_obj=None):
803803

804804
@classmethod
805805
def from_obj(cls, obj, return_obj=None):
806-
if not obj:
806+
if obj is None:
807807
return None
808808

809809
if not return_obj:

stix/indicator/indicator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def observables(self, valuelist):
6262

6363
@property
6464
def indicator_type(self):
65-
return self._indicator_tye
65+
return self._indicator_type
6666

6767
@indicator_type.setter
6868
def indicator_type(self, value):

0 commit comments

Comments
 (0)