mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-09 17:32:29 +08:00
Replace Incomplete | None = None in third party stubs (#14063)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
class ConfigApiMixin:
|
||||
def create_config(self, name, data, labels: Incomplete | None = None, templating: Incomplete | None = None): ...
|
||||
def create_config(self, name, data, labels=None, templating=None): ...
|
||||
def inspect_config(self, id): ...
|
||||
def remove_config(self, id): ...
|
||||
def configs(self, filters: Incomplete | None = None): ...
|
||||
def configs(self, filters=None): ...
|
||||
|
||||
@@ -28,17 +28,17 @@ class ContainerApiMixin:
|
||||
logs: bool = False,
|
||||
demux: bool = False,
|
||||
): ...
|
||||
def attach_socket(self, container: _Container, params: Incomplete | None = None, ws: bool = False): ...
|
||||
def attach_socket(self, container: _Container, params=None, ws: bool = False): ...
|
||||
def commit(
|
||||
self,
|
||||
container: _Container,
|
||||
repository: str | None = None,
|
||||
tag: str | None = None,
|
||||
message: Incomplete | None = None,
|
||||
author: Incomplete | None = None,
|
||||
message=None,
|
||||
author=None,
|
||||
pause: bool = True,
|
||||
changes: Incomplete | None = None,
|
||||
conf: Incomplete | None = None,
|
||||
changes=None,
|
||||
conf=None,
|
||||
): ...
|
||||
def containers(
|
||||
self,
|
||||
@@ -50,7 +50,7 @@ class ContainerApiMixin:
|
||||
before: str | None = None,
|
||||
limit: int = -1,
|
||||
size: bool = False,
|
||||
filters: Incomplete | None = None,
|
||||
filters=None,
|
||||
): ...
|
||||
def create_container(
|
||||
self,
|
||||
@@ -71,19 +71,19 @@ class ContainerApiMixin:
|
||||
entrypoint: str | list[str] | None = None,
|
||||
working_dir: str | None = None,
|
||||
domainname: str | None = None,
|
||||
host_config: Incomplete | None = None,
|
||||
host_config=None,
|
||||
mac_address: str | None = None,
|
||||
labels: dict[str, str] | list[str] | None = None,
|
||||
stop_signal: str | None = None,
|
||||
networking_config: Incomplete | None = None,
|
||||
healthcheck: Incomplete | None = None,
|
||||
networking_config=None,
|
||||
healthcheck=None,
|
||||
stop_timeout: int | None = None,
|
||||
runtime: str | None = None,
|
||||
use_config_proxy: bool = True,
|
||||
platform: str | None = None,
|
||||
): ...
|
||||
def create_container_config(self, *args, **kwargs) -> ContainerConfig: ...
|
||||
def create_container_from_config(self, config, name: Incomplete | None = None, platform: Incomplete | None = None): ...
|
||||
def create_container_from_config(self, config, name=None, platform=None): ...
|
||||
def create_host_config(self, *args, **kwargs) -> HostConfig: ...
|
||||
def create_networking_config(self, *args, **kwargs) -> NetworkingConfig: ...
|
||||
def create_endpoint_config(self, *args, **kwargs) -> EndpointConfig: ...
|
||||
@@ -137,7 +137,7 @@ class ContainerApiMixin:
|
||||
def pause(self, container: _Container) -> None: ...
|
||||
def port(self, container: _Container, private_port: int): ...
|
||||
def put_archive(self, container: _Container, path: str, data) -> bool: ...
|
||||
def prune_containers(self, filters: Incomplete | None = None): ...
|
||||
def prune_containers(self, filters=None): ...
|
||||
def remove_container(self, container: _Container, v: bool = False, link: bool = False, force: bool = False) -> None: ...
|
||||
def rename(self, container: _Container, name: str) -> None: ...
|
||||
def resize(self, container: _Container, height: int, width: int) -> None: ...
|
||||
@@ -160,7 +160,7 @@ class ContainerApiMixin:
|
||||
mem_reservation: float | str | None = None,
|
||||
memswap_limit: int | str | None = None,
|
||||
kernel_memory: int | str | None = None,
|
||||
restart_policy: Incomplete | None = None,
|
||||
restart_policy=None,
|
||||
): ...
|
||||
def wait(
|
||||
self,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
class ExecApiMixin:
|
||||
def exec_create(
|
||||
self,
|
||||
@@ -11,12 +9,12 @@ class ExecApiMixin:
|
||||
tty: bool = False,
|
||||
privileged: bool = False,
|
||||
user: str = "",
|
||||
environment: Incomplete | None = None,
|
||||
workdir: Incomplete | None = None,
|
||||
detach_keys: Incomplete | None = None,
|
||||
environment=None,
|
||||
workdir=None,
|
||||
detach_keys=None,
|
||||
): ...
|
||||
def exec_inspect(self, exec_id): ...
|
||||
def exec_resize(self, exec_id, height: Incomplete | None = None, width: Incomplete | None = None) -> None: ...
|
||||
def exec_resize(self, exec_id, height=None, width=None) -> None: ...
|
||||
def exec_start(
|
||||
self, exec_id, detach: bool = False, tty: bool = False, stream: bool = False, socket: bool = False, demux: bool = False
|
||||
): ...
|
||||
|
||||
@@ -6,35 +6,25 @@ log: Incomplete
|
||||
class ImageApiMixin:
|
||||
def get_image(self, image: str, chunk_size: int | None = 2097152): ...
|
||||
def history(self, image): ...
|
||||
def images(self, name: str | None = None, quiet: bool = False, all: bool = False, filters: Incomplete | None = None): ...
|
||||
def images(self, name: str | None = None, quiet: bool = False, all: bool = False, filters=None): ...
|
||||
def import_image(
|
||||
self,
|
||||
src: Incomplete | None = None,
|
||||
src=None,
|
||||
repository: str | None = None,
|
||||
tag: str | None = None,
|
||||
image: str | None = None,
|
||||
changes: Incomplete | None = None,
|
||||
changes=None,
|
||||
stream_src: bool = False,
|
||||
): ...
|
||||
def import_image_from_data(
|
||||
self, data, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None
|
||||
): ...
|
||||
def import_image_from_file(
|
||||
self, filename: str, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None
|
||||
): ...
|
||||
def import_image_from_stream(
|
||||
self, stream, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None
|
||||
): ...
|
||||
def import_image_from_url(
|
||||
self, url, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None
|
||||
): ...
|
||||
def import_image_from_image(
|
||||
self, image, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None
|
||||
): ...
|
||||
def import_image_from_data(self, data, repository: str | None = None, tag: str | None = None, changes=None): ...
|
||||
def import_image_from_file(self, filename: str, repository: str | None = None, tag: str | None = None, changes=None): ...
|
||||
def import_image_from_stream(self, stream, repository: str | None = None, tag: str | None = None, changes=None): ...
|
||||
def import_image_from_url(self, url, repository: str | None = None, tag: str | None = None, changes=None): ...
|
||||
def import_image_from_image(self, image, repository: str | None = None, tag: str | None = None, changes=None): ...
|
||||
def inspect_image(self, image): ...
|
||||
def inspect_distribution(self, image, auth_config: Incomplete | None = None): ...
|
||||
def load_image(self, data, quiet: Incomplete | None = None): ...
|
||||
def prune_images(self, filters: Incomplete | None = None): ...
|
||||
def inspect_distribution(self, image, auth_config=None): ...
|
||||
def load_image(self, data, quiet=None): ...
|
||||
def prune_images(self, filters=None): ...
|
||||
def pull(
|
||||
self,
|
||||
repository: str,
|
||||
@@ -45,14 +35,7 @@ class ImageApiMixin:
|
||||
platform: str | None = None,
|
||||
all_tags: bool = False,
|
||||
): ...
|
||||
def push(
|
||||
self,
|
||||
repository: str,
|
||||
tag: str | None = None,
|
||||
stream: bool = False,
|
||||
auth_config: Incomplete | None = None,
|
||||
decode: bool = False,
|
||||
): ...
|
||||
def push(self, repository: str, tag: str | None = None, stream: bool = False, auth_config=None, decode: bool = False): ...
|
||||
def remove_image(self, image: str, force: bool = False, noprune: bool = False): ...
|
||||
def search(self, term: str, limit: int | None = None): ...
|
||||
def tag(self, image, repository, tag: str | None = None, force: bool = False): ...
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterable
|
||||
from typing import Any, Literal, TypedDict, type_check_only
|
||||
from typing_extensions import TypeAlias
|
||||
@@ -17,7 +16,7 @@ _Network: TypeAlias = _HasId | _HasID | str
|
||||
_Container: TypeAlias = _HasId | _HasID | str
|
||||
|
||||
class NetworkApiMixin:
|
||||
def networks(self, names: Incomplete | None = None, ids: Incomplete | None = None, filters: Incomplete | None = None): ...
|
||||
def networks(self, names=None, ids=None, filters=None): ...
|
||||
def create_network(
|
||||
self,
|
||||
name: str,
|
||||
@@ -32,7 +31,7 @@ class NetworkApiMixin:
|
||||
scope: Literal["local", "global", "swarm"] | None = None,
|
||||
ingress: bool | None = None,
|
||||
) -> dict[str, str]: ...
|
||||
def prune_networks(self, filters: Incomplete | None = None): ...
|
||||
def prune_networks(self, filters=None): ...
|
||||
def remove_network(self, net_id: _Network) -> None: ...
|
||||
def inspect_network(
|
||||
self, net_id: _Network, verbose: bool | None = None, scope: Literal["local", "global", "swarm"] | None = None
|
||||
@@ -41,12 +40,12 @@ class NetworkApiMixin:
|
||||
self,
|
||||
container: _Container,
|
||||
net_id: str,
|
||||
ipv4_address: Incomplete | None = None,
|
||||
ipv6_address: Incomplete | None = None,
|
||||
aliases: Incomplete | None = None,
|
||||
ipv4_address=None,
|
||||
ipv6_address=None,
|
||||
aliases=None,
|
||||
links: dict[str, str] | dict[str, None] | dict[str, str | None] | Iterable[tuple[str, str | None]] | None = None,
|
||||
link_local_ips: Incomplete | None = None,
|
||||
driver_opt: Incomplete | None = None,
|
||||
mac_address: Incomplete | None = None,
|
||||
link_local_ips=None,
|
||||
driver_opt=None,
|
||||
mac_address=None,
|
||||
) -> None: ...
|
||||
def disconnect_container_from_network(self, container: _Container, net_id: str, force: bool = False) -> None: ...
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
class PluginApiMixin:
|
||||
def configure_plugin(self, name, options): ...
|
||||
def create_plugin(self, name, plugin_data_dir, gzip: bool = False): ...
|
||||
def disable_plugin(self, name, force: bool = False): ...
|
||||
def enable_plugin(self, name, timeout: int = 0): ...
|
||||
def inspect_plugin(self, name): ...
|
||||
def pull_plugin(self, remote, privileges, name: Incomplete | None = None): ...
|
||||
def pull_plugin(self, remote, privileges, name=None): ...
|
||||
def plugins(self): ...
|
||||
def plugin_privileges(self, name): ...
|
||||
def push_plugin(self, name): ...
|
||||
|
||||
@@ -1,22 +1,20 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
class ServiceApiMixin:
|
||||
def create_service(
|
||||
self,
|
||||
task_template,
|
||||
name: Incomplete | None = None,
|
||||
labels: Incomplete | None = None,
|
||||
mode: Incomplete | None = None,
|
||||
update_config: Incomplete | None = None,
|
||||
networks: Incomplete | None = None,
|
||||
endpoint_config: Incomplete | None = None,
|
||||
endpoint_spec: Incomplete | None = None,
|
||||
rollback_config: Incomplete | None = None,
|
||||
name=None,
|
||||
labels=None,
|
||||
mode=None,
|
||||
update_config=None,
|
||||
networks=None,
|
||||
endpoint_config=None,
|
||||
endpoint_spec=None,
|
||||
rollback_config=None,
|
||||
): ...
|
||||
def inspect_service(self, service, insert_defaults: Incomplete | None = None): ...
|
||||
def inspect_service(self, service, insert_defaults=None): ...
|
||||
def inspect_task(self, task): ...
|
||||
def remove_service(self, service): ...
|
||||
def services(self, filters: Incomplete | None = None, status: Incomplete | None = None): ...
|
||||
def services(self, filters=None, status=None): ...
|
||||
def service_logs(
|
||||
self,
|
||||
service,
|
||||
@@ -27,21 +25,21 @@ class ServiceApiMixin:
|
||||
since: int = 0,
|
||||
timestamps: bool = False,
|
||||
tail: str = "all",
|
||||
is_tty: Incomplete | None = None,
|
||||
is_tty=None,
|
||||
): ...
|
||||
def tasks(self, filters: Incomplete | None = None): ...
|
||||
def tasks(self, filters=None): ...
|
||||
def update_service(
|
||||
self,
|
||||
service,
|
||||
version,
|
||||
task_template: Incomplete | None = None,
|
||||
name: Incomplete | None = None,
|
||||
labels: Incomplete | None = None,
|
||||
mode: Incomplete | None = None,
|
||||
update_config: Incomplete | None = None,
|
||||
networks: Incomplete | None = None,
|
||||
endpoint_config: Incomplete | None = None,
|
||||
endpoint_spec: Incomplete | None = None,
|
||||
task_template=None,
|
||||
name=None,
|
||||
labels=None,
|
||||
mode=None,
|
||||
update_config=None,
|
||||
networks=None,
|
||||
endpoint_config=None,
|
||||
endpoint_spec=None,
|
||||
fetch_current_spec: bool = False,
|
||||
rollback_config: Incomplete | None = None,
|
||||
rollback_config=None,
|
||||
): ...
|
||||
|
||||
@@ -7,34 +7,29 @@ class SwarmApiMixin:
|
||||
def get_unlock_key(self): ...
|
||||
def init_swarm(
|
||||
self,
|
||||
advertise_addr: Incomplete | None = None,
|
||||
advertise_addr=None,
|
||||
listen_addr: str = "0.0.0.0:2377",
|
||||
force_new_cluster: bool = False,
|
||||
swarm_spec: Incomplete | None = None,
|
||||
default_addr_pool: Incomplete | None = None,
|
||||
subnet_size: Incomplete | None = None,
|
||||
data_path_addr: Incomplete | None = None,
|
||||
data_path_port: Incomplete | None = None,
|
||||
swarm_spec=None,
|
||||
default_addr_pool=None,
|
||||
subnet_size=None,
|
||||
data_path_addr=None,
|
||||
data_path_port=None,
|
||||
): ...
|
||||
def inspect_swarm(self): ...
|
||||
def inspect_node(self, node_id): ...
|
||||
def join_swarm(
|
||||
self,
|
||||
remote_addrs,
|
||||
join_token,
|
||||
listen_addr: str = "0.0.0.0:2377",
|
||||
advertise_addr: Incomplete | None = None,
|
||||
data_path_addr: Incomplete | None = None,
|
||||
self, remote_addrs, join_token, listen_addr: str = "0.0.0.0:2377", advertise_addr=None, data_path_addr=None
|
||||
): ...
|
||||
def leave_swarm(self, force: bool = False): ...
|
||||
def nodes(self, filters: Incomplete | None = None): ...
|
||||
def nodes(self, filters=None): ...
|
||||
def remove_node(self, node_id, force: bool = False): ...
|
||||
def unlock_swarm(self, key): ...
|
||||
def update_node(self, node_id, version, node_spec: Incomplete | None = None): ...
|
||||
def update_node(self, node_id, version, node_spec=None): ...
|
||||
def update_swarm(
|
||||
self,
|
||||
version,
|
||||
swarm_spec: Incomplete | None = None,
|
||||
swarm_spec=None,
|
||||
rotate_worker_token: bool = False,
|
||||
rotate_manager_token: bool = False,
|
||||
rotate_manager_unlock_key: bool = False,
|
||||
|
||||
@@ -16,17 +16,14 @@ def split_repo_name(repo_name: str) -> tuple[str, str]: ...
|
||||
def get_credential_store(authconfig: AuthConfig | MutableMapping[str, Incomplete], registry: str | None): ...
|
||||
|
||||
class AuthConfig(dict[str, Incomplete]):
|
||||
def __init__(self, dct: MutableMapping[str, Incomplete], credstore_env: Incomplete | None = None) -> None: ...
|
||||
def __init__(self, dct: MutableMapping[str, Incomplete], credstore_env=None) -> None: ...
|
||||
@classmethod
|
||||
def parse_auth(
|
||||
cls, entries: Mapping[str, dict[Incomplete, Incomplete]], raise_on_error: bool = False
|
||||
) -> dict[str, Incomplete]: ...
|
||||
@classmethod
|
||||
def load_config(
|
||||
cls,
|
||||
config_path: FileDescriptorOrPath | None,
|
||||
config_dict: dict[str, Incomplete] | None,
|
||||
credstore_env: Incomplete | None = None,
|
||||
cls, config_path: FileDescriptorOrPath | None, config_dict: dict[str, Incomplete] | None, credstore_env=None
|
||||
) -> Self: ...
|
||||
@property
|
||||
def auths(self) -> dict[str, Incomplete]: ...
|
||||
@@ -41,13 +38,11 @@ class AuthConfig(dict[str, Incomplete]):
|
||||
def get_all_credentials(self): ...
|
||||
def add_auth(self, reg: str, data) -> None: ...
|
||||
|
||||
def resolve_authconfig(authconfig, registry: str | None = None, credstore_env: Incomplete | None = None): ...
|
||||
def resolve_authconfig(authconfig, registry: str | None = None, credstore_env=None): ...
|
||||
def convert_to_hostname(url: str) -> str: ...
|
||||
def decode_auth(auth: str | ReadableBuffer) -> tuple[str, str]: ...
|
||||
def encode_header(auth) -> bytes: ...
|
||||
def parse_auth(entries: Mapping[str, dict[Incomplete, Incomplete]], raise_on_error: bool = False): ...
|
||||
def load_config(
|
||||
config_path: FileDescriptorOrPath | None = None,
|
||||
config_dict: dict[str, Incomplete] | None = None,
|
||||
credstore_env: Incomplete | None = None,
|
||||
config_path: FileDescriptorOrPath | None = None, config_dict: dict[str, Incomplete] | None = None, credstore_env=None
|
||||
) -> AuthConfig: ...
|
||||
|
||||
@@ -4,7 +4,7 @@ class Store:
|
||||
program: Incomplete
|
||||
exe: Incomplete
|
||||
environment: Incomplete
|
||||
def __init__(self, program, environment: Incomplete | None = None) -> None: ...
|
||||
def __init__(self, program, environment=None) -> None: ...
|
||||
def get(self, server): ...
|
||||
def store(self, server, username, secret): ...
|
||||
def erase(self, server) -> None: ...
|
||||
|
||||
@@ -46,15 +46,15 @@ class Container(Model):
|
||||
detach: bool = False,
|
||||
stream: bool = False,
|
||||
socket: bool = False,
|
||||
environment: Incomplete | None = None,
|
||||
workdir: Incomplete | None = None,
|
||||
environment=None,
|
||||
workdir=None,
|
||||
demux: bool = False,
|
||||
) -> ExecResult: ...
|
||||
def export(self, chunk_size: int | None = 2097152) -> str: ...
|
||||
def get_archive(
|
||||
self, path: str, chunk_size: int | None = 2097152, encode_stream: bool = False
|
||||
) -> tuple[Incomplete, Incomplete]: ...
|
||||
def kill(self, signal: Incomplete | None = None): ...
|
||||
def kill(self, signal=None): ...
|
||||
@overload
|
||||
def logs(
|
||||
self,
|
||||
@@ -141,9 +141,9 @@ class ContainerCollection(Collection[Container]):
|
||||
detach: Literal[False] = False,
|
||||
device_cgroup_rules: list[Incomplete] | None = None,
|
||||
device_read_bps: list[Incomplete] | None = None,
|
||||
device_read_iops: Incomplete | None = None,
|
||||
device_write_bps: Incomplete | None = None,
|
||||
device_write_iops: Incomplete | None = None,
|
||||
device_read_iops=None,
|
||||
device_write_bps=None,
|
||||
device_write_iops=None,
|
||||
devices: list[str] | None = None,
|
||||
device_requests: list[DeviceRequest] | None = None,
|
||||
dns: list[Incomplete] | None = None,
|
||||
@@ -236,9 +236,9 @@ class ContainerCollection(Collection[Container]):
|
||||
detach: Literal[True],
|
||||
device_cgroup_rules: list[Incomplete] | None = None,
|
||||
device_read_bps: list[Incomplete] | None = None,
|
||||
device_read_iops: Incomplete | None = None,
|
||||
device_write_bps: Incomplete | None = None,
|
||||
device_write_iops: Incomplete | None = None,
|
||||
device_read_iops=None,
|
||||
device_write_bps=None,
|
||||
device_write_iops=None,
|
||||
devices: list[str] | None = None,
|
||||
device_requests: list[DeviceRequest] | None = None,
|
||||
dns: list[Incomplete] | None = None,
|
||||
@@ -327,9 +327,9 @@ class ContainerCollection(Collection[Container]):
|
||||
detach: Literal[True],
|
||||
device_cgroup_rules: list[Incomplete] | None = None,
|
||||
device_read_bps: list[Incomplete] | None = None,
|
||||
device_read_iops: Incomplete | None = None,
|
||||
device_write_bps: Incomplete | None = None,
|
||||
device_write_iops: Incomplete | None = None,
|
||||
device_read_iops=None,
|
||||
device_write_bps=None,
|
||||
device_write_iops=None,
|
||||
devices: list[str] | None = None,
|
||||
device_requests: list[DeviceRequest] | None = None,
|
||||
dns: list[Incomplete] | None = None,
|
||||
@@ -399,13 +399,13 @@ class ContainerCollection(Collection[Container]):
|
||||
self,
|
||||
all: bool = False,
|
||||
before: str | None = None,
|
||||
filters: Incomplete | None = None,
|
||||
filters=None,
|
||||
limit: int = -1,
|
||||
since: str | None = None,
|
||||
sparse: bool = False,
|
||||
ignore_removed: bool = False,
|
||||
): ...
|
||||
def prune(self, filters: Incomplete | None = None): ...
|
||||
def prune(self, filters=None): ...
|
||||
|
||||
RUN_CREATE_KWARGS: list[str]
|
||||
RUN_HOST_CONFIG_KWARGS: list[str]
|
||||
|
||||
@@ -15,11 +15,11 @@ class Plugin(Model):
|
||||
def enable(self, timeout: int = 0) -> None: ...
|
||||
def push(self): ...
|
||||
def remove(self, force: bool = False): ...
|
||||
def upgrade(self, remote: Incomplete | None = None) -> Generator[Incomplete, Incomplete, None]: ...
|
||||
def upgrade(self, remote=None) -> Generator[Incomplete, Incomplete, None]: ...
|
||||
|
||||
class PluginCollection(Collection[Plugin]):
|
||||
model: type[Plugin]
|
||||
def create(self, name, plugin_data_dir, gzip: bool = False): ... # type:ignore[override]
|
||||
def get(self, name): ...
|
||||
def install(self, remote_name, local_name: Incomplete | None = None): ...
|
||||
def install(self, remote_name, local_name=None): ...
|
||||
def list(self): ...
|
||||
|
||||
@@ -9,7 +9,7 @@ class Service(Model):
|
||||
@property
|
||||
def version(self): ...
|
||||
def remove(self): ...
|
||||
def tasks(self, filters: Incomplete | None = None): ...
|
||||
def tasks(self, filters=None): ...
|
||||
def update(self, **kwargs): ...
|
||||
def logs(self, **kwargs): ...
|
||||
def scale(self, replicas): ...
|
||||
@@ -17,8 +17,8 @@ class Service(Model):
|
||||
|
||||
class ServiceCollection(Collection[Service]):
|
||||
model: type[Service]
|
||||
def create(self, image, command: Incomplete | None = None, **kwargs): ... # type:ignore[override]
|
||||
def get(self, service_id, insert_defaults: Incomplete | None = None): ...
|
||||
def create(self, image, command=None, **kwargs): ... # type:ignore[override]
|
||||
def get(self, service_id, insert_defaults=None): ...
|
||||
def list(self, **kwargs): ...
|
||||
|
||||
CONTAINER_SPEC_KWARGS: Incomplete
|
||||
|
||||
@@ -25,5 +25,5 @@ class NpipeHTTPAdapter(BaseHTTPAdapter):
|
||||
max_pool_size: Incomplete
|
||||
pools: Incomplete
|
||||
def __init__(self, base_url, timeout: int = 60, pool_connections=..., max_pool_size=...) -> None: ...
|
||||
def get_connection(self, url, proxies: Incomplete | None = None): ...
|
||||
def get_connection(self, url, proxies=None): ...
|
||||
def request_url(self, request, proxies): ...
|
||||
|
||||
@@ -9,7 +9,7 @@ MAXIMUM_RETRY_COUNT: int
|
||||
def check_closed(f): ...
|
||||
|
||||
class NpipeSocket:
|
||||
def __init__(self, handle: Incomplete | None = None) -> None: ...
|
||||
def __init__(self, handle=None) -> None: ...
|
||||
def accept(self) -> None: ...
|
||||
def bind(self, address) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
@@ -20,10 +20,10 @@ class NpipeSocket:
|
||||
def dup(self): ...
|
||||
def getpeername(self): ...
|
||||
def getsockname(self): ...
|
||||
def getsockopt(self, level, optname, buflen: Incomplete | None = None) -> None: ...
|
||||
def getsockopt(self, level, optname, buflen=None) -> None: ...
|
||||
def ioctl(self, control, option) -> None: ...
|
||||
def listen(self, backlog) -> None: ...
|
||||
def makefile(self, mode: Incomplete | None = None, bufsize: Incomplete | None = None): ...
|
||||
def makefile(self, mode=None, bufsize=None): ...
|
||||
def recv(self, bufsize, flags: int = 0): ...
|
||||
def recvfrom(self, bufsize, flags: int = 0): ...
|
||||
def recvfrom_into(self, buf, nbytes: int = 0, flags: int = 0): ...
|
||||
|
||||
@@ -24,7 +24,7 @@ class SSHConnection(urllib3.connection.HTTPConnection):
|
||||
ssh_transport: Incomplete
|
||||
timeout: Incomplete
|
||||
ssh_host: Incomplete
|
||||
def __init__(self, ssh_transport: Incomplete | None = None, timeout: int = 60, host: Incomplete | None = None) -> None: ...
|
||||
def __init__(self, ssh_transport=None, timeout: int = 60, host=None) -> None: ...
|
||||
sock: Incomplete
|
||||
def connect(self) -> None: ...
|
||||
|
||||
@@ -33,9 +33,7 @@ class SSHConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
|
||||
ssh_transport: Incomplete
|
||||
timeout: Incomplete
|
||||
ssh_host: Incomplete
|
||||
def __init__(
|
||||
self, ssh_client: Incomplete | None = None, timeout: int = 60, maxsize: int = 10, host: Incomplete | None = None
|
||||
) -> None: ...
|
||||
def __init__(self, ssh_client=None, timeout: int = 60, maxsize: int = 10, host=None) -> None: ...
|
||||
|
||||
class SSHHTTPAdapter(BaseHTTPAdapter):
|
||||
__attrs__: Incomplete
|
||||
@@ -45,5 +43,5 @@ class SSHHTTPAdapter(BaseHTTPAdapter):
|
||||
max_pool_size: Incomplete
|
||||
pools: Incomplete
|
||||
def __init__(self, base_url, timeout: int = 60, pool_connections=..., max_pool_size=..., shell_out: bool = False) -> None: ...
|
||||
def get_connection(self, url, proxies: Incomplete | None = None): ...
|
||||
def get_connection(self, url, proxies=None): ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
@@ -27,5 +27,5 @@ class UnixHTTPAdapter(BaseHTTPAdapter):
|
||||
max_pool_size: Incomplete
|
||||
pools: Incomplete
|
||||
def __init__(self, socket_url, timeout: int = 60, pool_connections=25, max_pool_size=10) -> None: ...
|
||||
def get_connection(self, url, proxies: Incomplete | None = None): ...
|
||||
def get_connection(self, url, proxies=None): ...
|
||||
def request_url(self, request, proxies): ...
|
||||
|
||||
@@ -10,7 +10,7 @@ class EndpointConfig(dict[str, Incomplete]):
|
||||
ipv4_address: str | None = None,
|
||||
ipv6_address: str | None = None,
|
||||
link_local_ips: list[str] | None = None,
|
||||
driver_opt: Incomplete | None = None,
|
||||
driver_opt=None,
|
||||
mac_address: str | None = None,
|
||||
) -> None: ...
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import io
|
||||
from _typeshed import Incomplete, StrOrBytesPath, StrPath
|
||||
from _typeshed import StrOrBytesPath, StrPath
|
||||
from collections.abc import Generator, Iterable, MutableSequence
|
||||
from os import PathLike
|
||||
from tarfile import _Fileobj
|
||||
@@ -16,11 +16,7 @@ def tar(
|
||||
def exclude_paths(root: StrPath, patterns: MutableSequence[str], dockerfile: str | None = None) -> set[str]: ...
|
||||
def build_file_list(root: str) -> list[str]: ...
|
||||
def create_archive(
|
||||
root: str,
|
||||
files: Iterable[str] | None = None,
|
||||
fileobj: _Fileobj | None = None,
|
||||
gzip: bool = False,
|
||||
extra_files: Incomplete | None = None,
|
||||
root: str, files: Iterable[str] | None = None, fileobj: _Fileobj | None = None, gzip: bool = False, extra_files=None
|
||||
) -> _TemporaryFileWrapper[bytes] | _Fileobj: ...
|
||||
def mkbuildcontext(dockerfile: io.IOBase | StrOrBytesPath) -> _TemporaryFileWrapper[bytes]: ...
|
||||
def split_path(p: str) -> list[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user