style: improve code style and docstring
@@ -61,10 +61,10 @@ class Pipeline:
self.services[name_prev_service].next_services.add(service)
return wrong_names # wrong names means that some service_names, used in previous services don't exist
- def get_next_services(self, done=None, waiting=None):
- if not done:
+ def get_next_services(self, done: set = None, waiting: set =None):
+ if done is not None:
done = set()
- if not waiting:
+ if waiting is not None:
waiting = set()
removed_names = waiting | done
for name, service in self.services.items():
