Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: add -> None type hints and apply TCH and PYI rules #4352

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Nov 13, 2024

use Ruff

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@njzjz njzjz requested a review from wanghan-iapcm November 13, 2024 08:57
@@ -406,7 +411,7 @@
optimizer = torch.optim.Adam(my_model.parameters(), lr=cur_lr)
optimizer.zero_grad()

def step(step_id):
def step(step_id) -> None:

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable step is not used.
@njzjz njzjz added this pull request to the merge queue Nov 13, 2024
Merged via the queue into deepmodeling:devel with commit 320c7fd Nov 13, 2024
51 checks passed
@njzjz njzjz deleted the ruff-tch branch November 13, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants