Skip to content

Commit 58db3a1

Browse files
Merge pull request #2054 from VWS-Python/dependabot/pip/types-docker-7.0.0.20240506
Bump types-docker from 7.0.0.20240503 to 7.0.0.20240506
2 parents 2f6eb9c + 5be0451 commit 58db3a1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ dev = [
318318
"sybil==6.1.0",
319319
"tenacity==8.2.3",
320320
"torch==2.3.0",
321-
"types-docker==7.0.0.20240503", # This is very incomplete, so we still do not check ``test_docker.py`` with pyright.
321+
"types-docker==7.0.0.20240506", # This is very incomplete, so we still do not check ``test_docker.py`` with pyright.
322322
"types-Pillow==10.2.0.20240423",
323323
"types-PyYAML==6.0.12.20240311",
324324
"types-requests==2.31.0.20240406",

tests/mock_vws/test_docker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ def fixture_custom_bridge_network() -> Iterator[Network]:
6969
"""
7070
client = docker.from_env()
7171
try:
72-
network = client.networks.create( # type: ignore[no-untyped-call]
72+
network = client.networks.create(
7373
name="test-vws-bridge-" + uuid.uuid4().hex,
7474
driver="bridge",
7575
)
7676
except NotFound:
7777
# On Windows the "bridge" network driver is not available and we use
7878
# the "nat" driver instead.
79-
network = client.networks.create( # type: ignore[no-untyped-call]
79+
network = client.networks.create(
8080
name="test-vws-bridge-" + uuid.uuid4().hex,
8181
driver="nat",
8282
)
@@ -90,15 +90,15 @@ def fixture_custom_bridge_network() -> Iterator[Network]:
9090
images_to_remove: set[Image] = set()
9191
for container in network.containers:
9292
assert isinstance(container, Container)
93-
network.disconnect(container=container) # type: ignore[no-untyped-call]
93+
network.disconnect(container=container)
9494
container.stop() # type: ignore[no-untyped-call]
9595
container.remove(v=True, force=True) # type: ignore[no-untyped-call]
9696
images_to_remove.add(container.image)
9797

9898
# This does leave behind untagged images.
9999
for image in images_to_remove:
100100
image.remove(force=True)
101-
network.remove() # type: ignore[no-untyped-call]
101+
network.remove()
102102

103103

104104
@pytest.mark.requires_docker_build()

0 commit comments

Comments
 (0)