Skip to content

Commit

Permalink
small chages
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantxu1 committed Apr 1, 2024
1 parent 9dc7544 commit fe98187
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stix2/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,12 @@ class DictionaryProperty(Property):
def __init__(self, valid_types=None, spec_version=DEFAULT_VERSION, **kwargs):
self.spec_version = spec_version

simple_types = [BinaryProperty, BooleanProperty, FloatProperty, HashesProperty, HexProperty, IDProperty, IntegerProperty, StringProperty, TimestampProperty]
simple_types = [BinaryProperty, BooleanProperty, FloatProperty, HexProperty, IntegerProperty, StringProperty, TimestampProperty]
if not valid_types:
valid_types = [Property]
else:
if not isinstance(valid_types, list):
valid_types = [valid_types]
for type_ in valid_types:
if isinstance(type_, ListProperty):
found = False
Expand Down

0 comments on commit fe98187

Please sign in to comment.