Skip to content

Commit edd7c17

Browse files
committed
Modernize Python code to 3.10+ with pyupgrade
- Update type hints in tests/conftest.py to use modern syntax - Convert Dict[str, Any] to dict[str, Any] - Convert List[Dict[str, Any]] to list[dict[str, Any]] - All code now uses Python 3.10+ compatible syntax
1 parent 850c14c commit edd7c17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def sample_json_string() -> str:
2222

2323

2424
@pytest.fixture
25-
def sample_json_dict() -> Dict[str, Any]:
25+
def sample_json_dict() -> dict[str, Any]:
2626
"""Return a sample JSON dictionary for testing.
2727
2828
Returns:
@@ -36,7 +36,7 @@ def sample_json_dict() -> Dict[str, Any]:
3636

3737

3838
@pytest.fixture
39-
def sample_json_list() -> List[Dict[str, Any]]:
39+
def sample_json_list() -> list[dict[str, Any]]:
4040
"""Return a sample JSON list for testing.
4141
4242
Returns:

0 commit comments

Comments
 (0)