Skip to content

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

Open
mhucka wants to merge 5 commits intoquantumlib:mainfrom
mhucka:add-type-hints-devtools
Open

Add missing Python type annotations to code in dev_tools/#1298
mhucka wants to merge 5 commits intoquantumlib:mainfrom
mhucka:add-type-hints-devtools

Conversation

@mhucka
Copy link
Copy Markdown
Contributor

@mhucka mhucka commented May 6, 2026

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
Copy link
Copy Markdown
Contributor

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

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>
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.

1 participant