File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 5
5
import logging
6
6
import textwrap
7
7
from pathlib import Path
8
- from typing import Any , Set
8
+ from typing import Set
9
9
10
10
import black
11
11
import pytest
@@ -84,7 +84,7 @@ def test_main_failure(
84
84
assert caplog .records [1 ].message == f"extra in { requirements_file } "
85
85
86
86
87
- def test_main_no_spec (capsys : pytest .CaptureFixture [Any ]) -> None :
87
+ def test_main_no_spec (capsys : pytest .CaptureFixture [str ]) -> None :
88
88
with pytest .raises (SystemExit ) as excinfo :
89
89
find_extra_reqs .main (arguments = [])
90
90
@@ -134,7 +134,7 @@ def test_logging_config(
134
134
assert log_levels == expected_log_levels
135
135
136
136
137
- def test_main_version (capsys : pytest .CaptureFixture [Any ]) -> None :
137
+ def test_main_version (capsys : pytest .CaptureFixture [str ]) -> None :
138
138
with pytest .raises (SystemExit ):
139
139
find_extra_reqs .main (arguments = ["--version" ])
140
140
Original file line number Diff line number Diff line change 6
6
import os
7
7
import textwrap
8
8
from pathlib import Path
9
- from typing import Any , Set
9
+ from typing import Set
10
10
11
11
import black
12
12
import pytest
@@ -104,7 +104,7 @@ def test_main_failure(
104
104
)
105
105
106
106
107
- def test_main_no_spec (capsys : pytest .CaptureFixture [Any ]) -> None :
107
+ def test_main_no_spec (capsys : pytest .CaptureFixture [str ]) -> None :
108
108
with pytest .raises (SystemExit ) as excinfo :
109
109
find_missing_reqs .main (arguments = [])
110
110
@@ -151,9 +151,7 @@ def test_logging_config(
151
151
assert log_levels == expected_log_levels
152
152
153
153
154
- def test_main_version (
155
- capsys : pytest .CaptureFixture [Any ],
156
- ) -> None :
154
+ def test_main_version (capsys : pytest .CaptureFixture [str ]) -> None :
157
155
with pytest .raises (SystemExit ):
158
156
find_missing_reqs .main (arguments = ["--version" ])
159
157
You can’t perform that action at this time.
0 commit comments