Fix "tail" parameter type for Docker container logs (#11906)

This commit is contained in:
Adam Dangoor
2024-05-12 12:09:47 +01:00
committed by GitHub
parent f75211b801
commit bbad7f2f24

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import Literal
class ContainerApiMixin:
def attach(
@@ -73,7 +74,7 @@ class ContainerApiMixin:
stderr: bool = True,
stream: bool = False,
timestamps: bool = False,
tail: str = "all",
tail: Literal["all"] | int = "all",
since: Incomplete | None = None,
follow: Incomplete | None = None,
until: Incomplete | None = None,