Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jitingxu1 committed May 28, 2024
1 parent ddceed9 commit d01efbe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/support_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def make_support_matrix():
)

def count_full(column):
return sum(1 for value in column if value is True or value == "backend-specific")
return sum(
1 for value in column if value is True or value == "backend-specific"
)

all_visible_ops_count = len(support_matrix)
fully_coverage = pd.Index(
Expand All @@ -175,7 +177,11 @@ def count_full(column):
)

def count_partial(column):
return sum(1 for value in column if isinstance(value, str) and value != "backend-specific")
return sum(
1
for value in column
if isinstance(value, str) and value != "backend-specific"
)

partial_coverage = pd.Index(
support_matrix.apply(count_partial)
Expand Down

0 comments on commit d01efbe

Please sign in to comment.