Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d8357b4

Browse filesBrowse files
committed
!squash config(feat[models,loader]): Implement modern
1 parent 9ddc8ac commit d8357b4
Copy full SHA for d8357b4

File tree

Expand file treeCollapse file tree

1 file changed

+5
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-8
lines changed

‎tests/fixtures/example_configs.py

Copy file name to clipboardExpand all lines: tests/fixtures/example_configs.py
+5-8Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.