From 5f3b9d9d2620dbc512eb953512f2987528671be1 Mon Sep 17 00:00:00 2001 From: Ro'e Katz Date: Wed, 4 Sep 2024 18:44:24 +0300 Subject: [PATCH] Use Union instead of | for python 3.9 --- .../opal-server/opal_server/data/data_update_publisher.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/opal-server/opal_server/data/data_update_publisher.py b/packages/opal-server/opal_server/data/data_update_publisher.py index 25a41369b..bf330eaa2 100644 --- a/packages/opal-server/opal_server/data/data_update_publisher.py +++ b/packages/opal-server/opal_server/data/data_update_publisher.py @@ -1,6 +1,5 @@ -import asyncio import os -from typing import List +from typing import List, Union from opal_common.logger import logger from opal_common.schemas.data import DataUpdate @@ -12,7 +11,7 @@ class DataUpdatePublisher: - def __init__(self, pubsub: PubSub | ScopedPubSub) -> None: + def __init__(self, pubsub: Union[PubSub, ScopedPubSub]) -> None: self._pubsub = pubsub @staticmethod