Skip to content

Commit 09ab18f

Browse files
simonjayhawkinsWillAyd
authored andcommitted
TYPING: _pytest.mark.structures.MarkDecorator -> Callable (#28134)
1 parent 2165a6a commit 09ab18f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/util/_test_decorators.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ def test_foo():
2525
"""
2626
from distutils.version import LooseVersion
2727
import locale
28-
from typing import Optional
28+
from typing import Callable, Optional
2929

30-
from _pytest.mark.structures import MarkDecorator
3130
import pytest
3231

3332
from 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.

0 commit comments

Comments
 (0)