Skip to content

[docker] Add return type for container labels - #16272

Merged
srittau merged 1 commit into
python:mainfrom
Mohith1612:agent/type-docker-container-labels
Aug 20, 2026
Merged

[docker] Add return type for container labels#16272
srittau merged 1 commit into
python:mainfrom
Mohith1612:agent/type-docker-container-labels

Conversation

@Mohith1612

Copy link
Copy Markdown
Contributor

Container.labels currently has an implicit Any return type even though docker-py 7.2.0 always returns a dictionary.

This adds the corresponding dict[str, str] return annotation.

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

@Mohith1612
Mohith1612 marked this pull request as ready for review August 20, 2026 10:37
@github-actions

Copy link
Copy Markdown
Contributor

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

@srittau
srittau merged commit 2bbf550 into python:main Aug 20, 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