Skip to content

Commit 5881817

Browse files
authored
Update get_orchestrator return type for generics
1 parent 497e4a4 commit 5881817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

durabletask/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def add_named_orchestrator(self, name: str, fn: task.Orchestrator) -> None:
166166

167167
self.orchestrators[name] = fn
168168

169-
def get_orchestrator(self, name: str) -> Optional[task.Orchestrator]:
169+
def get_orchestrator(self, name: str) -> Optional[task.Orchestrator[Any, Any]]:
170170
return self.orchestrators.get(name)
171171

172172
def add_activity(self, fn: task.Activity) -> str:

0 commit comments

Comments
 (0)