mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Fix "tail" parameter type for Docker container logs (#11906)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user