From e5d9ae8ce6f8783836be686d173ef8980e40aae3 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Thu, 14 Mar 2024 14:43:08 +0500 Subject: [PATCH] Remove no longer needed noqa comments. --- parsel/csstranslator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parsel/csstranslator.py b/parsel/csstranslator.py index ac6af32..80bfc7c 100644 --- a/parsel/csstranslator.py +++ b/parsel/csstranslator.py @@ -95,7 +95,7 @@ def xpath_pseudo_element( method = getattr(self, method_name, None) if not method: raise ExpressionError( - f"The functional pseudo-element ::{pseudo_element.name}() is unknown" # noqa: E231 + f"The functional pseudo-element ::{pseudo_element.name}() is unknown" ) xpath = method(xpath, pseudo_element) else: @@ -105,7 +105,7 @@ def xpath_pseudo_element( method = getattr(self, method_name, None) if not method: raise ExpressionError( - f"The pseudo-element ::{pseudo_element} is unknown" # noqa: E231 + f"The pseudo-element ::{pseudo_element} is unknown" ) xpath = method(xpath) return xpath @@ -116,7 +116,7 @@ def xpath_attr_functional_pseudo_element( """Support selecting attribute values using ::attr() pseudo-element""" if function.argument_types() not in (["STRING"], ["IDENT"]): raise ExpressionError( - f"Expected a single string or ident for ::attr(), got {function.arguments!r}" # noqa: E231 + f"Expected a single string or ident for ::attr(), got {function.arguments!r}" ) return XPathExpr.from_xpath(xpath, attribute=function.arguments[0].value)