Skip to content

Commit

Permalink
Use Union instead of | for python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
roekatz committed Sep 4, 2024
1 parent 0d37da5 commit 5f3b9d9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5f3b9d9

Please sign in to comment.