Skip to content

Commit 3040d2b

Browse files
committed
make linter happy
Signed-off-by: mgorsk1 <[email protected]>
1 parent e7b7990 commit 3040d2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/testcontainers/core/container.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pathlib import Path
55
from platform import system
66
from socket import socket
7-
from typing import TYPE_CHECKING, Optional, Tuple
7+
from typing import TYPE_CHECKING, Optional
88

99
import docker.errors
1010
from docker import version
@@ -55,7 +55,7 @@ def __init__(
5555
self._network: Optional[Network] = None
5656
self._network_aliases: Optional[list[str]] = None
5757
self._kwargs = kwargs
58-
self._files: list[Tuple[Path, Path]] = []
58+
self._files: list[tuple[Path, Path]] = []
5959

6060
def with_env(self, key: str, value: str) -> Self:
6161
self.env[key] = value
@@ -93,7 +93,7 @@ def copy_file_from_container(self, container_file: str, destination_file: str) -
9393
for chunk in tar_stream:
9494
with tarfile.open(fileobj=io.BytesIO(chunk)) as tar:
9595
for member in tar.getmembers():
96-
with open(destination_file, 'wb') as f:
96+
with open(destination_file, "wb") as f:
9797
f.write(tar.extractfile(member).read())
9898

9999
return destination_file
@@ -102,7 +102,7 @@ def copy_file_from_container(self, container_file: str, destination_file: str) -
102102
def _put_file_in_container(container, source_file: Path, destination_file: Path):
103103
data = io.BytesIO()
104104

105-
with tarfile.open(fileobj=data, mode='w') as tar:
105+
with tarfile.open(fileobj=data, mode="w") as tar:
106106
tar.add(source_file, arcname=destination_file)
107107

108108
data.seek(0)

0 commit comments

Comments
 (0)