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():
2525"""
2626from distutils .version import LooseVersion
2727import locale
28- from typing import Optional
28+ from typing import Callable , Optional
2929
30- from _pytest .mark .structures import MarkDecorator
3130import pytest
3231
3332from pandas .compat import is_platform_32bit , is_platform_windows
@@ -103,7 +102,7 @@ def _skip_if_no_scipy():
103102 )
104103
105104
106- def skip_if_installed (package : str ,) -> MarkDecorator :
105+ def skip_if_installed (package : str ,) -> Callable :
107106 """
108107 Skip a test if a package is installed.
109108
@@ -117,7 +116,7 @@ def skip_if_installed(package: str,) -> MarkDecorator:
117116 )
118117
119118
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 :
121120 """
122121 Generic function to help skip tests when required packages are not
123122 present on the testing system.
You can’t perform that action at this time.
0 commit comments