mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-12 16:10:12 +08:00
[docker] Fix Container.attach() return type (#15155)
This commit is contained in:
1 parent
f8b61f65d4
commit
9a175299c4
3 files changed
+82
-5
No files matched your search
@@ -0,0 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing_extensions import assert_type
|
||||
|
||||
from docker.models.containers import Container
|
||||
|
||||
|
||||
def check_attach(c: Container) -> None:
|
||||
assert_type(c.attach(), bytes)
|
||||
assert_type(c.attach(stream=False), bytes)
|
||||
for line in c.attach(stream=True):
|
||||
assert_type(line, bytes)
|
||||
Reference in new issue
Block a user