Commit Graph

71 Commits

Author SHA1 Message Date
Emmanuel Ferdman c08fa66771 [docker] Improve type annotations in api.swarm (#15629) 2026-04-08 13:18:38 +02:00
lev-blit 563213272e Use dashes instead of underscores for METADATA.toml field names (#15614) 2026-04-07 15:03:53 +02:00
Emmanuel Ferdman 888b9ff4a2 [docker] Add missing type annotations in docker.types (#15566) 2026-04-02 08:01:59 +02:00
lev-blit fc7a5448ff Rename requires to dependencies in METADATA files (#15594) 2026-04-01 19:15:12 +02:00
renovate[bot] 8b31f2639e Update most test/lint dependencies (#15582) 2026-04-01 17:54:51 +02:00
Sebastian Rittau 8ffc43610f Update mypy to 1.20.0 (#15588) 2026-04-01 17:02:18 +02:00
Emmanuel Ferdman e78872c57e [docker] Fix incomplete types in models and add missing method (#15565) 2026-03-27 17:46:47 +01:00
Semyon Moroz 282b1a838a Add @type_check_only to stub-only private classes in various third-party stubs (#15535) 2026-03-21 18:02:17 -04:00
Emmanuel Ferdman 9a175299c4 [docker] Fix Container.attach() return type (#15155) 2026-01-08 19:01:24 +01:00
kasium cb592d4f3e Fix docker exec types (#15097) 2025-12-01 19:09:42 +01:00
Roberto Fernández Iglesias 61f2be3def [docker-py] Add fallback exec_start overload (#15098) 2025-12-01 12:35:27 +01:00
Roberto Fernández Iglesias 57b8ed7d6e [docker-py] Add some missing types (#15084) 2025-11-28 16:01:37 +01:00
Roberto Fernández Iglesias 94ffa6e3f5 [docker-py] Fix the type of Model and Collection client attribute (#15083) 2025-11-26 14:21:53 +01:00
Roberto Fernández Iglesias c10e3685c4 [docker-py] Fix Container.top() return type (#15067) 2025-11-24 23:13:40 +01:00
Roberto Fernández Iglesias d5e3a97bae [docker-py] Add str type to named parameter in Image.save() method (#15068) 2025-11-24 17:33:38 +01:00
Roberto Fernández Iglesias 40f0894ffb [docker-py] Add some return types to DockerClient method (#15069) 2025-11-24 17:32:03 +01:00
lev-blit dc290f4f30 [docker] Fix some incomplete types (#14817) 2025-10-08 12:41:20 +02:00
kasium e02a247a59 Fix docker mount source type (#14726)
The source of a mount can be None e.g. if the type is tmpfs.
The parse_mount_string also sets source=None in some cases
2025-09-15 16:57:26 +02:00
lev-blit 3e75cd86f9 [docker] Add default value for detach parameter of ContainerCollection.create (#14666) 2025-09-06 14:06:54 -04:00
Jelle Zijlstra 573b57d8da Add missing defaults to third-party stubs (#14617) 2025-08-21 13:36:29 -07:00
Brian Schubert 81c8fcb2e6 Mark stub-only private symbols as @type_check_only in third-party stubs (#14545) 2025-08-08 11:29:48 +02:00
Takashi Ono 741c70f4ba [docker] load() accepts bytes streams (#14366) 2025-07-04 12:39:02 +02:00
Adam Dangoor fbc3c33ba2 Expand type stubs for Docker container device read/write bps/iops (#14092) 2025-05-22 08:31:06 +02:00
Sebastian Rittau 126768408a Replace Incomplete | None = None in third party stubs (#14063) 2025-05-15 21:37:43 +02:00
Semyon Moroz 0042bcc68f Improve docker.types (#13809)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2025-05-02 19:08:31 -04:00
Semyon Moroz fd155cb31b Improve docker.utils (#13808) 2025-04-15 13:31:53 +02:00
Dun L d2ca658a69 Fix missed type hints in docker containers.pyi (#13136)
Previously, `Container.exec_run` and `Container.get_archive` missed type hints on `cmd` and `path` arguments, respectively.
Added type hints based on docstring.
2024-12-27 21:14:27 -08:00
Károly Szabó 257691b5c5 [docker-py] Fix 'volumes' argument type hint for 'run' and 'create' functions in containers.pyi (#12594) 2024-08-26 15:20:02 +02:00
kasium 225145cde5 chunk_size parameter of get_image accepts None (#12560) 2024-08-20 13:22:59 +02:00
sobolevn 6f248dfa37 Bump mypy to 1.11.1 (#12463) 2024-08-04 23:19:28 -07:00
Nelson Yeung 389b318691 [docker] Add restart_policy type annotation to Container model (#12366) 2024-07-19 18:39:29 +02:00
Oguzhan Mete Ozturk 6db5f35f4d [docker] Update ports type annotation (#12284) 2024-07-10 11:57:27 +02:00
Adam Dangoor 02d2f5f09e Specify stream type of Docker logs (#12214)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-07-02 18:47:47 +01:00
Adam Dangoor 712e4146ef Allow users of docker run, create to not give name/version (#12234) 2024-06-28 13:29:20 +02:00
Adam Dangoor ea869e2959 Add kwarg types to Docker container run and create (#12216) 2024-06-27 10:11:47 +02:00
Adam Dangoor 2d9b0fd2a0 Add Container wait return type at Docker model layer (#12217)
Also, improve type for the API layer. Previously, the type accounted for a 404 response. However, in the 404 case, a `docker.errors.NotFound` exception is raised.
2024-06-27 09:58:43 +02:00
Adam Dangoor 60443ca258 Add more keyword argument types for Docker pull (#12210) 2024-06-25 15:23:03 +02:00
Adam Dangoor ff35709167 Add parameter types to docker.models.images.ImageCollection.build (#12196)
Introduce stubs-only module `docker._types`.
2024-06-25 14:18:21 +02:00
Adam Dangoor 1535e93674 Add return types to docker container run (#12206) 2024-06-25 14:04:48 +02:00
Adam Dangoor da443145bc Add more specific types to Docker network inspect/get equivalent methods (#12188) 2024-06-24 12:38:32 +02:00
Adam Dangoor f66d687b08 Add types for container and net_id parameters in docker/api/network (#12042) 2024-06-24 11:31:02 +02:00
Adam Dangoor c8898742e0 Add parameter types to docker's NetworkCollection create (#12190) 2024-06-24 11:28:24 +02:00
Adam Dangoor 8cdda79ae3 Add more precise types in docker.types.containers (#12191) 2024-06-24 11:27:57 +02:00
Adam Dangoor 5c3401a545 Use more specific types for Docker create_network (#12187) 2024-06-23 10:04:20 +02:00
Adam Dangoor 820447c57b Add some types for Docker.api.network.NetworkApiMixing.create_network parameters (#12156)
See implementation at
https://github.com/docker/docker-py/blob/a3652028b1ead708bd9191efb286f909ba6c2a49/docker/api/network.py#L40
2024-06-20 00:15:54 -07:00
Adam Dangoor 1af9de664f [docker] Add a number of types to docker.models.containers.Container (#12077) 2024-06-16 12:05:42 +02:00
Adam Dangoor 64af79f98b [docker] Annotate Container.stop() (#12052) 2024-05-31 10:30:02 +02:00
Nikita Sobolev 66c640ece9 Update docker to 7.1.x (#12068) 2024-05-31 08:56:49 +02:00
Adam Dangoor b2f6e5221b Add types to docker.models.containers.Container.logs (#12044) 2024-05-28 13:55:18 +02:00
Adam Dangoor 41cc4f9ede Add keyword argument types to docker.models.containers.Container.wait() (#12037) 2024-05-27 20:19:29 +03:00