Refactor the code to make it comply with PEP-8 standards:Convert all class definitions to CamelCase style.

(issue 37)
This commit is contained in:
Liu Zhicong
2023-08-23 11:19:16 -07:00
parent 23963adc6e
commit 5454009e7b
21 changed files with 601 additions and 603 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
from abc import ABC, abstractmethod
from .compute_kernel import compute_task
from .compute_kernel import ComputeTask
class compute_node(ABC):
class ComputeNode(ABC):
@abstractmethod
async def push_task(self,task:compute_task,proiority:int = 0):
async def push_task(self,task:ComputeTask,proiority:int = 0):
pass
async def remove_task(self,task_id:str):
@@ -38,7 +38,7 @@ class compute_node(ABC):
class local_compute_node(compute_node):
class LocalComputeNode(ComputeNode):
def display(self) -> str:
return super().display()