Skip to content

Commit 97001c8

Browse files
committed
Remove some uses of the Any type
1 parent caf3982 commit 97001c8

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

tests/test_find_extra_reqs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import logging
66
import textwrap
77
from pathlib import Path
8-
from typing import Any, Set
8+
from typing import Set
99

1010
import pretend
1111
import pytest
@@ -84,7 +84,7 @@ def test_main_failure(
8484
assert caplog.records[1].message == f"extra in {requirements_file}"
8585

8686

87-
def test_main_no_spec(capsys: pytest.CaptureFixture[Any]) -> None:
87+
def test_main_no_spec(capsys: pytest.CaptureFixture[str]) -> None:
8888
with pytest.raises(SystemExit) as excinfo:
8989
find_extra_reqs.main(arguments=[])
9090

@@ -134,7 +134,7 @@ def test_logging_config(
134134
assert log_levels == expected_log_levels
135135

136136

137-
def test_main_version(capsys: pytest.CaptureFixture[Any]) -> None:
137+
def test_main_version(capsys: pytest.CaptureFixture[str]) -> None:
138138
with pytest.raises(SystemExit):
139139
find_extra_reqs.main(arguments=["--version"])
140140

tests/test_find_missing_reqs.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77
import textwrap
88
from pathlib import Path
9-
from typing import Any, Set
9+
from typing import Set
1010

1111
import pretend
1212
import pytest
@@ -104,7 +104,7 @@ def test_main_failure(
104104
)
105105

106106

107-
def test_main_no_spec(capsys: pytest.CaptureFixture[Any]) -> None:
107+
def test_main_no_spec(capsys: pytest.CaptureFixture[str]) -> None:
108108
with pytest.raises(SystemExit) as excinfo:
109109
find_missing_reqs.main(arguments=[])
110110

@@ -151,9 +151,7 @@ def test_logging_config(
151151
assert log_levels == expected_log_levels
152152

153153

154-
def test_main_version(
155-
capsys: pytest.CaptureFixture[Any],
156-
) -> None:
154+
def test_main_version(capsys: pytest.CaptureFixture[str]) -> None:
157155
with pytest.raises(SystemExit):
158156
find_missing_reqs.main(arguments=["--version"])
159157

0 commit comments

Comments
 (0)