This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 9be59712a89 Remove Python <3.9 code from main (#45252)
9be59712a89 is described below
commit 9be59712a8934c9c7eb90a478964a2e0f8260ecf
Author: Kaxil Naik <[email protected]>
AuthorDate: Sat Dec 28 01:54:16 2024 +0530
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 6b511b6b715..377666427ab 100644
--- a/tests/decorators/test_python.py
+++ b/tests/decorators/test_python.py
@@ -79,15 +79,9 @@ class TestAirflowTaskDecorator(BasePythonTest):
"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):