typing: add type hints to cloudinit.temp_utils - #6939
Open
Prathamesh0901 wants to merge 4 commits into
Open
Conversation
Author
|
please review @holmanb |
holmanb
requested changes
Jul 17, 2026
holmanb
left a comment
Member
There was a problem hiding this comment.
Thanks for this proposal. It looks like this is on track. I have a couple of minor nitpicks.
Author
|
Hi @holmanb, just checking in, all checks are passing now after the changes. Let me know if anything else needs changing. |
holmanb
reviewed
Jul 23, 2026
Author
|
@holmanb I have made the changes mentioned in the last review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Commit Message
Additional Context
Part of the ongoing effort tracked in #5445 to incrementally enable
check_untyped_defs across the codebase. This PR covers
cloudinit/temp_utils.py. The util.py change is a small, necessary
side effect (see commit message) rather than unrelated scope
creep -- happy to split it into a separate commit/PR if preferred.
No new tests added -- this is a type-only change with no
behavioral difference, verified by the existing test suite
passing unchanged.
Test Steps
.tox/mypy/bin/python -m mypy cloudinit/temp_utils.py
tox -e mypy
tox -e py3 -- tests/unittests/test_temp_utils.py
tox -e py3
Merge type