We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e2d41 commit a43d3b5Copy full SHA for a43d3b5
core/testcontainers/core/config.py
@@ -2,6 +2,7 @@
2
from os import environ
3
from os.path import exists
4
from pathlib import Path
5
+from typing import Union
6
7
MAX_TRIES = int(environ.get("TC_MAX_TRIES", 120))
8
SLEEP_TIME = int(environ.get("TC_POOLING_INTERVAL", 1))
@@ -47,7 +48,7 @@ class TestcontainersConfiguration:
47
48
ryuk_reconnection_timeout: str = RYUK_RECONNECTION_TIMEOUT
49
tc_properties: dict[str, str] = field(default_factory=read_tc_properties)
50
- def tc_properties_get_tc_host(self) -> str | None:
51
+ def tc_properties_get_tc_host(self) -> Union[str, None]:
52
return self.tc_properties.get("tc.host")
53
54
@property
0 commit comments