Skip to content

Commit ac1daa0

Browse files
[docker] Fix Container.attach() return type
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
1 parent 2f21e9a commit ac1daa0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

stubs/docker/@tests/test_cases/check_attach.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
from docker.models.containers import Container
66

7-
c: Container
8-
assert_type(c.attach(), bytes)
9-
assert_type(c.attach(stream=False), bytes)
10-
for line in c.attach(stream=True):
11-
assert_type(line, bytes)
7+
8+
def check_attach(c: Container) -> None:
9+
assert_type(c.attach(), bytes)
10+
assert_type(c.attach(stream=False), bytes)
11+
for line in c.attach(stream=True):
12+
assert_type(line, bytes)

0 commit comments

Comments
 (0)