Skip to content

[docker] Improve type annotations in api.swarm#15629

Merged
srittau merged 2 commits intopython:mainfrom
emmanuel-ferdman:docker-swarm-types
Apr 8, 2026
Merged

[docker] Improve type annotations in api.swarm#15629
srittau merged 2 commits intopython:mainfrom
emmanuel-ferdman:docker-swarm-types

Conversation

@emmanuel-ferdman
Copy link
Copy Markdown
Contributor

PR Summary

This PR fills in the missing types in docker.api.swarm.

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, one comment about a forwarded signature.

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/computation/ops.py:328: error: Need type annotation for "_binary_ops_dict" (hint: "_binary_ops_dict: dict[<type>, <type>] = ...")  [var-annotated]

Copy link
Copy Markdown
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@srittau srittau merged commit c08fa66 into python:main Apr 8, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants