From 7bdc814b48fc8aff66195fb644676b993439f5e6 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Tue, 17 Sep 2024 16:28:20 +0300 Subject: [PATCH] Fix for Python 3.7 --- robotframework_reportportal/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robotframework_reportportal/helpers.py b/robotframework_reportportal/helpers.py index 7466914..e0d9b37 100644 --- a/robotframework_reportportal/helpers.py +++ b/robotframework_reportportal/helpers.py @@ -15,10 +15,10 @@ """This module contains functions to ease reporting to ReportPortal.""" import re -from typing import Iterable +from typing import Iterable, Tuple -def replace_patterns(text: str, patterns: Iterable[tuple[re.Pattern, str]]) -> str: +def replace_patterns(text: str, patterns: Iterable[Tuple[re.Pattern, str]]) -> str: """Removes starting patterns from the text.""" result = text for p, repl in patterns: