Skip to content

Commit 50e6160

Browse files
fix: use Union instead of | for type hint
1 parent 74c8df1 commit 50e6160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/testcontainers/core/docker_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def client_networks_create(self, name: str, param: dict):
215215
labels = create_labels("", param.get("labels"))
216216
return self.client.networks.create(name, **{**param, "labels": labels})
217217

218-
def find_container_by_hash(self, hash_: str) -> Container | None:
218+
def find_container_by_hash(self, hash_: str) -> Union[Container, None]:
219219
for container in self.client.containers.list(all=True):
220220
if container.labels.get("hash", None) == hash_:
221221
return container

0 commit comments

Comments
 (0)