Skip to content

Commit

Permalink
Remove no longer needed noqa comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Mar 14, 2024
1 parent ae8ffb1 commit e5d9ae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parsel/csstranslator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit e5d9ae8

Please sign in to comment.