Add flatten_set helper
MODIFY
plextraktsync/decorators/flatten.py
plextraktsync/decorators/flatten.py
@@ -15,3 +15,11 @@ def inner(*args, **kwargs):
return dict(method(*args, **kwargs))
return inner
+
+
+def flatten_set(method):
+ @wraps(method)
+ def inner(*args, **kwargs):
+ return set(method(*args, **kwargs))
+
+ return inner

Add flatten_set helper