Skip to content

[docker] Add return types for node model operations - #16236

Merged
srittau merged 1 commit into
python:mainfrom
Mohith1612:agent/improve-docker-node-return-types
Aug 18, 2026
Merged

[docker] Add return types for node model operations#16236
srittau merged 1 commit into
python:mainfrom
Mohith1612:agent/improve-docker-node-return-types

Conversation

@Mohith1612

Copy link
Copy Markdown
Contributor

Node.version, Node.update, Node.remove, and NodeCollection.get currently have implicit Any return types even though docker-py 7.2.0 has unambiguous implementations:

This adds the corresponding int, Literal[True], and Node return annotations.

Agent used: Codex was used for reconnaissance, implementation, and review.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@Mohith1612
Mohith1612 marked this pull request as ready for review August 18, 2026 15:35

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

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 2909425 into python:main Aug 18, 2026
74 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