Skip to content

Commit

Permalink
Use earlier Python syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
WardLT committed Mar 11, 2024
1 parent 2371fc9 commit 0581c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colmena/task_server/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self,
self.threads = threads
super().__init__(queues=queues, method_names=list(self._methods.keys()))

def _submit(self, task: Result, topic: str) -> Future | None:
def _submit(self, task: Result, topic: str) -> Optional[Future]:
return self._executor.submit(self._methods[task.method], task)

def _setup(self):
Expand Down

0 comments on commit 0581c58

Please sign in to comment.