Require a type when querying by type

stix2.0
Chris Lenk 2018-04-02 09:54:22 -04:00
parent 4a2ac6df3a
commit 940afb0012
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ class DataSource(with_metaclass(ABCMeta)):
"""
def query_by_type(self, obj_type='indicator', filters=None):
def query_by_type(self, obj_type, filters=None):
"""Retrieve all objects of the given STIX object type.
This helper function is a shortcut that calls query() under the hood.