Add return type to Docker Container.stop (#11869)

We can see at
https://github.com/docker/docker-py/blob/b6464dbed92b14b2c61d5ee49805fce041a3e083/docker/models/containers.py#L452
that this returns the return value of `self.client.api.stop`.

We can see at
https://github.com/docker/docker-py/blob/b6464dbed92b14b2c61d5ee49805fce041a3e083/docker/api/container.py#L1187
that this returns None.
This commit is contained in:
Adam Dangoor
2024-05-06 10:05:43 +01:00
committed by GitHub
parent 113b2ccd42
commit 727f3c4320
+1 -1
View File
@@ -48,7 +48,7 @@ class Container(Model):
def restart(self, **kwargs): ...
def start(self, **kwargs): ...
def stats(self, **kwargs): ...
def stop(self, **kwargs): ...
def stop(self, **kwargs) -> None: ...
def top(self, **kwargs): ...
def unpause(self): ...
def update(self, **kwargs): ...