Skip to content

Refactor: clean up type annotations in hamiltonian.py and update .git… - #204

Merged
hzhangxyz merged 1 commit into
mainfrom
dev/hzhangxyz-5
Mar 5, 2026
Merged

Refactor: clean up type annotations in hamiltonian.py and update .git…#204
hzhangxyz merged 1 commit into
mainfrom
dev/hzhangxyz-5

Conversation

@hzhangxyz

Copy link
Copy Markdown
Member

…ignore

  • Remove redundant typing import and local variable type hints in Hamiltonian class.
  • Add .vscode and clarify .venv path in .gitignore.

…ignore

- Remove redundant typing import and local variable type hints in Hamiltonian class.
- Add .vscode and clarify .venv path in .gitignore.
Copilot AI review requested due to automatic review settings March 5, 2026 21:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Refactors the Hamiltonian implementation to remove redundant/unused typing artifacts and updates repository ignore rules to better match local dev environment setup.

Changes:

  • Removed an unused typing import and redundant local variable type annotations in Hamiltonian methods.
  • Updated .gitignore to ignore only a repo-root /.venv and to ignore /.vscode.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
qmp/hamiltonian/hamiltonian.py Removes unused typing import and local typing.Callable annotations without changing runtime behavior.
.gitignore Adjusts venv ignore rule to repo-root and adds ignore for VS Code settings directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hzhangxyz
hzhangxyz merged commit cfeb98c into main Mar 5, 2026
12 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