Skip to content

Commit 45a3df0

Browse files
BogayLee-W
authored andcommitted
style(mypy): Remove unnecessary type ignore
1 parent 0fee405 commit 45a3df0

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

tests/commands/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def config():
1313
return _config
1414

1515

16-
@pytest.fixture() # type: ignore
16+
@pytest.fixture()
1717
def changelog_path() -> str:
1818
return os.path.join(os.getcwd(), "CHANGELOG.md")
1919

2020

21-
@pytest.fixture() # type: ignore
21+
@pytest.fixture()
2222
def config_path() -> str:
2323
return os.path.join(os.getcwd(), "pyproject.toml")

tests/test_changelog.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@
447447
},
448448
]
449449

450-
451450
TAGS = [
452451
("v1.2.0", "141ee441c9c9da0809c554103a558eb17c30ed17", "2019-04-19"),
453452
("v1.1.1", "56c8a8da84e42b526bcbe130bd194306f7c7e813", "2019-04-18"),
@@ -469,7 +468,7 @@
469468
]
470469

471470

472-
@pytest.fixture # type: ignore
471+
@pytest.fixture
473472
def gitcommits() -> list:
474473
commits = [
475474
git.GitCommit(
@@ -484,13 +483,13 @@ def gitcommits() -> list:
484483
return commits
485484

486485

487-
@pytest.fixture # type: ignore
486+
@pytest.fixture
488487
def tags() -> list:
489488
tags = [git.GitTag(*tag) for tag in TAGS]
490489
return tags
491490

492491

493-
@pytest.fixture # type: ignore
492+
@pytest.fixture
494493
def changelog_content() -> str:
495494
changelog_path = "tests/CHANGELOG_FOR_TEST.md"
496495
with open(changelog_path, "r") as f:

tests/test_changelog_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"""
2626

2727

28-
@pytest.fixture # type: ignore
28+
@pytest.fixture
2929
def changelog_content() -> str:
3030
changelog_path = "tests/CHANGELOG_FOR_TEST.md"
3131
with open(changelog_path, "r") as f:

0 commit comments

Comments
 (0)