File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def serialized(self) -> str:
4848 return str (self .mypy_results_path )
4949
5050
51+ item_marker = "mypy"
5152mypy_argv : List [str ] = []
5253nodeid_name = "mypy"
5354stash_key = {
@@ -153,7 +154,7 @@ def pytest_configure(config: pytest.Config) -> None:
153154
154155 config .addinivalue_line (
155156 "markers" ,
156- f"{ MypyItem . MARKER } : mark tests to be checked by mypy." ,
157+ f"{ item_marker } : mark tests to be checked by mypy." ,
157158 )
158159 if config .getoption ("--mypy-ignore-missing-imports" ):
159160 mypy_argv .append ("--ignore-missing-imports" )
@@ -206,11 +207,9 @@ def collect(self) -> Iterator[MypyItem]:
206207class MypyItem (pytest .Item ):
207208 """A Mypy-related test Item."""
208209
209- MARKER = "mypy"
210-
211210 def __init__ (self , * args : Any , ** kwargs : Any ):
212211 super ().__init__ (* args , ** kwargs )
213- self .add_marker (self . MARKER )
212+ self .add_marker (item_marker )
214213
215214 def repr_failure (
216215 self ,
You can’t perform that action at this time.
0 commit comments