Skip to content

Commit

Permalink
Fix flake8 error.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenthompson committed Jun 20, 2024
1 parent 883e499 commit c3b8bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cutde/gpu_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@


def compare(a, b):
if type(a) != type(b):
if isinstance(a, type(b)):
return False
if type(a) is list or type(a) is tuple:
if isinstance(a, list) or isinstance(a, tuple):
if len(a) != len(b):
return False
comparisons = [compare(av, bv) for av, bv in zip(a, b)]
Expand Down

0 comments on commit c3b8bd8

Please sign in to comment.