From 9be59712a8934c9c7eb90a478964a2e0f8260ecf Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Sat, 28 Dec 2024 01:54:16 +0530 Subject: [PATCH] Remove Python <3.9 code from main (#45252) Fixed the test to include typing.Dict and removed the old skipif check. --- tests/decorators/test_python.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/decorators/test_python.py b/tests/decorators/test_python.py index 6b511b6b7156f..377666427ab4e 100644 --- a/tests/decorators/test_python.py +++ b/tests/decorators/test_python.py @@ -79,15 +79,9 @@ def test_python_operator_python_callable_is_callable(self): "annotation", [ "dict", - pytest.param( - "dict[str, int]", - marks=pytest.mark.skipif( - sys.version_info < (3, 9), - reason="PEP 585 is implemented in Python 3.9", - ), - ), - "typing.Dict", "dict[str, int]", + "typing.Dict", + "typing.Dict[str, int]", ], ) def test_infer_multiple_outputs_using_dict_typing(self, resolve, annotation):