From edd7c17b5d641314aca54c61b48dd5a6566ed1f5 Mon Sep 17 00:00:00 2001 From: Vinit Kumar Date: Thu, 9 Oct 2025 00:14:50 +0530 Subject: [PATCH] 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 --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index eedcc47..9e52860 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -22,7 +22,7 @@ def sample_json_string() -> str: @pytest.fixture -def sample_json_dict() -> Dict[str, Any]: +def sample_json_dict() -> dict[str, Any]: """Return a sample JSON dictionary for testing. Returns: @@ -36,7 +36,7 @@ def sample_json_dict() -> Dict[str, Any]: @pytest.fixture -def sample_json_list() -> List[Dict[str, Any]]: +def sample_json_list() -> list[dict[str, Any]]: """Return a sample JSON list for testing. Returns: