Skip to content

Commit

Permalink
Apply black formatting again
Browse files Browse the repository at this point in the history
  • Loading branch information
jerinphilip committed Jul 8, 2022
1 parent fcee7d9 commit 44f2f6c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bindings/python/tests/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def get_surrounding_text(element):

def has_surrounding_text(element):
return [
text is not None and text.strip() != "" for text in get_surrounding_text(element)
text is not None and text.strip() != ""
for text in get_surrounding_text(element)
]

def has_surrounding_spaces(element):
Expand All @@ -69,7 +70,9 @@ def format_whitespace(slots):
def format_element(element):
return "<{}{}>".format(
element.tag,
"".join(f' {key}="{val}"' for key, val in element.items() if key != "x-test-id"),
"".join(
f' {key}="{val}"' for key, val in element.items() if key != "x-test-id"
),
)

def clean_html(src):
Expand Down

0 comments on commit 44f2f6c

Please sign in to comment.