mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 04:11:28 +08:00
Add more specific types to Docker network inspect/get equivalent methods (#12188)
This commit is contained in:
@@ -33,7 +33,9 @@ class NetworkApiMixin:
|
||||
) -> dict[str, str]: ...
|
||||
def prune_networks(self, filters: Incomplete | None = None): ...
|
||||
def remove_network(self, net_id: _Network) -> None: ...
|
||||
def inspect_network(self, net_id: _Network, verbose: Incomplete | None = None, scope: Incomplete | None = None): ...
|
||||
def inspect_network(
|
||||
self, net_id: _Network, verbose: bool | None = None, scope: Literal["local", "global", "swarm"] | None = None
|
||||
): ...
|
||||
def connect_container_to_network(
|
||||
self,
|
||||
container: _Container,
|
||||
|
||||
@@ -30,6 +30,8 @@ class NetworkCollection(Collection[Network]):
|
||||
scope: Literal["local", "global", "swarm"] | None = None,
|
||||
ingress: bool | None = None,
|
||||
) -> Network: ...
|
||||
def get(self, network_id: str, *args, **kwargs) -> Network: ... # type:ignore[override]
|
||||
def get(
|
||||
self, network_id: str, verbose: bool | None = None, scope: Literal["local", "global", "swarm"] | None = None
|
||||
) -> Network: ... # type:ignore[override]
|
||||
def list(self, *args, **kwargs) -> list[Network]: ...
|
||||
def prune(self, filters: dict[str, Any] | None = None) -> dict[str, Any]: ...
|
||||
|
||||
Reference in New Issue
Block a user