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 @@ -25,9 +25,8 @@ def test_foo():
25
25
"""
26
26
from distutils .version import LooseVersion
27
27
import locale
28
- from typing import Optional
28
+ from typing import Callable , Optional
29
29
30
- from _pytest .mark .structures import MarkDecorator
31
30
import pytest
32
31
33
32
from pandas .compat import is_platform_32bit , is_platform_windows
@@ -103,7 +102,7 @@ def _skip_if_no_scipy():
103
102
)
104
103
105
104
106
- def skip_if_installed (package : str ,) -> MarkDecorator :
105
+ def skip_if_installed (package : str ,) -> Callable :
107
106
"""
108
107
Skip a test if a package is installed.
109
108
@@ -117,7 +116,7 @@ def skip_if_installed(package: str,) -> MarkDecorator:
117
116
)
118
117
119
118
120
- def skip_if_no (package : str , min_version : Optional [str ] = None ) -> MarkDecorator :
119
+ def skip_if_no (package : str , min_version : Optional [str ] = None ) -> Callable :
121
120
"""
122
121
Generic function to help skip tests when required packages are not
123
122
present on the testing system.
You can’t perform that action at this time.
0 commit comments