mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 19:12:31 +08:00
[docker] Fix Container.attach() return type (#15155)
This commit is contained in:
@@ -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