Skip to content

Commit

Permalink
Fix E721 do not compare types
Browse files Browse the repository at this point in the history
  • Loading branch information
stoprightthere committed Aug 14, 2023
1 parent 0c3e273 commit 1d57c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/spaces/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def run_tests_with_adj(A, L, tol=1e-14, tol_m=1e-7):
if sp.issparse(comparison):
comparison = comparison.toarray()

if type(comparison) == np.matrix: # bug with lab?
if isinstance(comparison, np.matrix): # bug with lab?
assert comparison.all(), "Laplacian does not match."
else:
assert B.all(comparison), "Laplacian does not match."
Expand Down

0 comments on commit 1d57c8d

Please sign in to comment.