Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test(self, data):
self._incorrect = []
classifiers = data.get("classifiers", [])
for classifier in classifiers:
if classifier not in CLASSIFIERS:
self._incorrect.append(classifier)
if self._incorrect:
return False
return True