Skip to content

Commit 3bfdb8d

Browse files
committed
!squash config(feat[models,loader]): Implement modern
1 parent 2a5d30f commit 3bfdb8d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/fixtures/example_configs.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@
33
from __future__ import annotations
44

55
import json
6-
from typing import TYPE_CHECKING
6+
import typing as t
77

88
import pytest
99
import yaml
1010

11-
if TYPE_CHECKING:
12-
from pathlib import Path
13-
1411

1512
@pytest.fixture
16-
def simple_yaml_config(tmp_path: Path) -> Path:
13+
def simple_yaml_config(tmp_path: t.Any) -> t.Any:
1714
"""Create a simple YAML configuration file.
1815
1916
Parameters
@@ -49,7 +46,7 @@ def simple_yaml_config(tmp_path: Path) -> Path:
4946

5047

5148
@pytest.fixture
52-
def complex_yaml_config(tmp_path: Path) -> Path:
49+
def complex_yaml_config(tmp_path: t.Any) -> t.Any:
5350
"""Create a complex YAML configuration file with multiple repositories.
5451
5552
Parameters
@@ -102,7 +99,7 @@ def complex_yaml_config(tmp_path: Path) -> Path:
10299

103100

104101
@pytest.fixture
105-
def json_config(tmp_path: Path) -> Path:
102+
def json_config(tmp_path: t.Any) -> t.Any:
106103
"""Create a JSON configuration file.
107104
108105
Parameters
@@ -138,7 +135,7 @@ def json_config(tmp_path: Path) -> Path:
138135

139136

140137
@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]:
142139
"""Create a configuration file with includes.
143140
144141
Parameters

0 commit comments

Comments
 (0)