Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def load_from_tree(self, query_data_tree: QueryDataTree):
for key, value in query_data_tree.items():
if isinstance(value, dict):
self.add_child_queries(key, Queries(self.driver_adapter).load_from_tree(value))
else:
self.add_queries(_create_methods(value, self.is_aio))
return self