From 0635d1783b6f29249dd6b926670325032aa8860f Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Mon, 26 Aug 2024 14:21:37 -0400 Subject: [PATCH] Remove type: ignore --- test/test_pre_commit.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test_pre_commit.py b/test/test_pre_commit.py index f0b651d..4579aa0 100644 --- a/test/test_pre_commit.py +++ b/test/test_pre_commit.py @@ -80,9 +80,7 @@ def list_files(top): branch_dir = os.path.join(example_dir, "branch") if os.path.exists(branch_dir): - git_repo.head.reference = git_repo.create_head( # type: ignore[misc] - "branch", git_repo.head.commit - ) + git_repo.head.reference = git_repo.create_head("branch", git_repo.head.commit) git_repo.index.remove(list(list_files(master_dir)), working_tree=True) shutil.copytree(branch_dir, git_repo.working_tree_dir, dirs_exist_ok=True) git_repo.index.add(list(list_files(branch_dir)))