Skip to content

Commit 0fc7774

Browse files
author
Shubham
committed
Use typing.Union to avoid build failures in Python version < 3.10
1 parent ff008ee commit 0fc7774

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import time
33
import subprocess
44
import socket
5+
import typing
56

67
import pytest
78
import objectbox
@@ -51,7 +52,7 @@ class SyncServerConfig:
5152
port: int
5253

5354

54-
def start_sync_server() -> SyncServerConfig | None:
55+
def start_sync_server() -> typing.Union[SyncServerConfig, None]:
5556
""" Starts the ObjectBox Sync Server in a Docker container. """
5657
current_dir = os.path.dirname(os.path.realpath(__file__))
5758
user_id = os.getuid()

0 commit comments

Comments
 (0)