Skip to content

Commit 91071c8

Browse files
adjustments (support old python)
1 parent bc5cd46 commit 91071c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/testcontainers/socat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# flake8: noqa
2-
from .socat import SocatContainer
2+
from testcontainers.socat.socat import SocatContainer

core/testcontainers/socat/socat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import random
1414
import socket
1515
import string
16-
from typing import Optional, Self
16+
from typing import Optional
1717

1818
from testcontainers.core.container import DockerContainer
1919
from testcontainers.core.waiting_utils import wait_container_is_ready
@@ -46,7 +46,7 @@ def __init__(
4646

4747
super().__init__(image=image, **kwargs)
4848

49-
def with_target(self, exposed_port: int, host: str, internal_port: Optional[int] = None) -> Self:
49+
def with_target(self, exposed_port: int, host: str, internal_port: Optional[int] = None) -> "SocatContainer":
5050
"""
5151
Add a target to forward connections from the exposed port to the given host and port.
5252

0 commit comments

Comments
 (0)