diff --git a/scripts/auto_tests_docs/auto_docs.py b/scripts/auto_tests_docs/auto_docs.py index 9d202505..8d441ff3 100644 --- a/scripts/auto_tests_docs/auto_docs.py +++ b/scripts/auto_tests_docs/auto_docs.py @@ -85,7 +85,9 @@ def main(): ] threads = [] for cls in classes: - thread = threading.Thread(target=process_documentation, args=(cls,)) + thread = threading.Thread( + target=process_documentation, args=(cls,) + ) threads.append(thread) thread.start() diff --git a/swarms/structs/__init__.py b/swarms/structs/__init__.py index 29c0f503..c767ae7b 100644 --- a/swarms/structs/__init__.py +++ b/swarms/structs/__init__.py @@ -58,5 +58,5 @@ __all__ = [ "BaseStructure", "detect_markdown", "Task", - "block" + "block", ] diff --git a/swarms/structs/block_wrapper.py b/swarms/structs/block_wrapper.py index 7b16d757..cae44edf 100644 --- a/swarms/structs/block_wrapper.py +++ b/swarms/structs/block_wrapper.py @@ -19,6 +19,7 @@ def block( Returns: Callable[..., Any]: The transformed function. """ + def wrapper(*args, **kwargs): # Here you can add code to execute the function on various hardwares # For now, we'll just call the function normally diff --git a/swarms/structs/blockdevice.py b/swarms/structs/blockdevice.py index 51e20e62..49e3fba7 100644 --- a/swarms/structs/blockdevice.py +++ b/swarms/structs/blockdevice.py @@ -1,17 +1,20 @@ - from dataclasses import dataclass + @dataclass class BlockDevice: device: str cluster: str description: str - + def __init__(self, device: str, cluster: str, description: str): self.device = device self.cluster = cluster self.description = description - + def __str__(self): - return f"BlockDevice(device={self.device}, cluster={self.cluster}, description={self.description})" - + return ( + f"BlockDevice(device={self.device}," + f" cluster={self.cluster}," + f" description={self.description})" + )