Skip to content

Commit d258e69

Browse files
committed
tests/sync(fix[update_repo]): Remove unused type: ignore comment
why: rev is typed str | None, so assigning None needs no suppression. mypy flags the unused comment as an error. what: - Remove unused type: ignore[assignment] on git_repo.rev = None
1 parent 34a9ea5 commit d258e69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/sync/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ def test_update_repo_symbolic_ref_failure_recorded(
11471147
git_repo.run(["checkout", head_sha])
11481148

11491149
# Ensure no rev is set so the code path hits symbolic_ref
1150-
git_repo.rev = None # type: ignore[assignment]
1150+
git_repo.rev = None
11511151

11521152
result = git_repo.update_repo()
11531153

0 commit comments

Comments
 (0)