Skip to content

Commit 1c8ebdc

Browse files
committed
chore: change return type to Self
1 parent 9093c6b commit 1c8ebdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/testcontainers/core/container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def with_exposed_ports(self, *ports: int) -> Self:
7070
self.ports[port] = None
7171
return self
7272

73-
def with_network(self, network: Network) -> 'DockerContainer':
73+
def with_network(self, network: Network) -> Self:
7474
self._network = network
7575
return self
7676

77-
def with_network_aliases(self, *aliases) -> 'DockerContainer':
77+
def with_network_aliases(self, *aliases) -> Self:
7878
self._network_aliases = aliases
7979
return self
8080

0 commit comments

Comments
 (0)