Skip to content

Commit a43d3b5

Browse files
author
Dandiggas
committed
use union vs pipe (support python 3.9)
1 parent 40e2d41 commit a43d3b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/testcontainers/core/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from os import environ
33
from os.path import exists
44
from pathlib import Path
5+
from typing import Union
56

67
MAX_TRIES = int(environ.get("TC_MAX_TRIES", 120))
78
SLEEP_TIME = int(environ.get("TC_POOLING_INTERVAL", 1))
@@ -47,7 +48,7 @@ class TestcontainersConfiguration:
4748
ryuk_reconnection_timeout: str = RYUK_RECONNECTION_TIMEOUT
4849
tc_properties: dict[str, str] = field(default_factory=read_tc_properties)
4950

50-
def tc_properties_get_tc_host(self) -> str | None:
51+
def tc_properties_get_tc_host(self) -> Union[str, None]:
5152
return self.tc_properties.get("tc.host")
5253

5354
@property

0 commit comments

Comments
 (0)