File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
if t .TYPE_CHECKING :
10
10
from _pytest .python_api import RaisesContext
11
+ from typing_extensions import TypeAlias
12
+
13
+ VersionCompareOp : TypeAlias = t .Callable [
14
+ [t .Any , t .Any ],
15
+ bool ,
16
+ ]
11
17
12
18
13
19
@pytest .mark .parametrize (
@@ -27,15 +33,9 @@ def test_version(version: str) -> None:
27
33
assert LooseVersion (version )
28
34
29
35
30
- VersionCompareOp : t .TypeAlias = t .Callable [
31
- [t .Any , t .Any ],
32
- bool ,
33
- ]
34
-
35
-
36
36
class VersionCompareFixture (t .NamedTuple ):
37
37
a : object
38
- op : VersionCompareOp
38
+ op : " VersionCompareOp"
39
39
b : object
40
40
raises : t .Union [t .Type [Exception ], bool ]
41
41
@@ -57,7 +57,7 @@ class VersionCompareFixture(t.NamedTuple):
57
57
)
58
58
def test_version_compare (
59
59
a : str ,
60
- op : t . Callable [[ object , object ], bool ] ,
60
+ op : "VersionCompareOp" ,
61
61
b : str ,
62
62
raises : t .Union [t .Type [Exception ], bool ],
63
63
) -> None :
You can’t perform that action at this time.
0 commit comments