From d10bbb1f61dc1030479cc6b518bab4761378835e Mon Sep 17 00:00:00 2001 From: Diego Alonso Alvarez Date: Tue, 10 Sep 2024 13:13:07 +0100 Subject: [PATCH] :rotating_light: Fix use of annotations incompatible with py3.9 --- tests/test_extensions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_extensions.py b/tests/test_extensions.py index c3356d57..0c598923 100644 --- a/tests/test_extensions.py +++ b/tests/test_extensions.py @@ -1,3 +1,5 @@ +from typing import Optional + import pytest @@ -101,7 +103,7 @@ def arc_dummy_patch(): ) -def assert_dict_almost_equal(d1: dict, d2: dict, tol: float | None = None): +def assert_dict_almost_equal(d1: dict, d2: dict, tol: Optional[float] = None): """Check if two dictionaries are almost equal. Args: