Skip to content

Commit 4e9cd27

Browse files
committed
fix: update | -> Union
1 parent 8b7fc8f commit 4e9cd27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nats_queue/nats_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async def addJobs(self, jobs: list[Job], priority: int = 1):
118118
async def addFlowJob(
119119
self, tree: Dict[str, Union[List[Job], Job]], priority: int = 1
120120
):
121-
async def traverse(node: Dict[str, List[Job] | Job], parent_id=None):
121+
async def traverse(node: Dict[str, Union[List[Job], Job]], parent_id=None):
122122
current_job: Job = node["job"]
123123
if parent_id:
124124
current_job.meta["parent_id"] = parent_id

0 commit comments

Comments
 (0)