Skip to content

Add missing Python type annotations to code in dev_tools/#1298

Merged
mhucka merged 5 commits into
quantumlib:mainfrom
mhucka:add-type-hints-devtools
May 8, 2026
Merged

Add missing Python type annotations to code in dev_tools/#1298
mhucka merged 5 commits into
quantumlib:mainfrom
mhucka:add-type-hints-devtools

Conversation

@mhucka

@mhucka mhucka commented May 6, 2026

Copy link
Copy Markdown
Collaborator

This adds type annotations where they were missing in some files under dev_tools/. This is limited in scope and was done partly to experiment with using Gemini CLI to do such tasks.

This partly addresses #1282.

@mhucka
mhucka marked this pull request as ready for review May 6, 2026 22:57
@mhucka
mhucka requested review from fdmalone and mpharrigan May 6, 2026 22:57

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request enhances type safety across various development tools by adding type hints to functions, methods, and test cases. It also refines imports and documentation in scripts like shell_tools.py and run-pip-compiles.py. A critical feedback point identifies a runtime error in run-pip-compiles.py caused by the incorrect use of subprocess.CompletedProcess as a generic type, which is not supported in all Python versions.

Comment thread dev_tools/requirements/run-pip-compiles.py Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@mhucka
mhucka added this pull request to the merge queue May 8, 2026
Merged via the queue into quantumlib:main with commit 528ae23 May 8, 2026
18 checks passed
@mhucka
mhucka deleted the add-type-hints-devtools branch May 8, 2026 21:30
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