File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Original file line number Diff line number Diff line change 3
3
from __future__ import annotations
4
4
5
5
import json
6
- from typing import TYPE_CHECKING
6
+ import typing as t
7
7
8
8
import pytest
9
9
import yaml
10
10
11
- if TYPE_CHECKING :
12
- from pathlib import Path
13
-
14
11
15
12
@pytest .fixture
16
- def simple_yaml_config (tmp_path : Path ) -> Path :
13
+ def simple_yaml_config (tmp_path : t . Any ) -> t . Any :
17
14
"""Create a simple YAML configuration file.
18
15
19
16
Parameters
@@ -49,7 +46,7 @@ def simple_yaml_config(tmp_path: Path) -> Path:
49
46
50
47
51
48
@pytest .fixture
52
- def complex_yaml_config (tmp_path : Path ) -> Path :
49
+ def complex_yaml_config (tmp_path : t . Any ) -> t . Any :
53
50
"""Create a complex YAML configuration file with multiple repositories.
54
51
55
52
Parameters
@@ -102,7 +99,7 @@ def complex_yaml_config(tmp_path: Path) -> Path:
102
99
103
100
104
101
@pytest .fixture
105
- def json_config (tmp_path : Path ) -> Path :
102
+ def json_config (tmp_path : t . Any ) -> t . Any :
106
103
"""Create a JSON configuration file.
107
104
108
105
Parameters
@@ -138,7 +135,7 @@ def json_config(tmp_path: Path) -> Path:
138
135
139
136
140
137
@pytest .fixture
141
- def config_with_includes (tmp_path : Path ) -> tuple [ Path , Path ]:
138
+ def config_with_includes (tmp_path : t . Any ) -> t . Tuple [ t . Any , t . Any ]:
142
139
"""Create a configuration file with includes.
143
140
144
141
Parameters
You can’t perform that action at this time.
0 commit comments