@@ -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