Skip to content

Commit 0a32b57

Browse files
committed
Fix SyntaxError: remove stray backslash in aslinearoperator hasattr string
Line 477: `hasattr(A, "rmatmat\")` had a Markdown-escaped backslash leaked into the Python source, causing an unterminated string literal. Fixed to `hasattr(A, "rmatmat")`.
1 parent ed58333 commit 0a32b57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dpnp/scipy/sparse/linalg/_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def aslinearoperator(A) -> LinearOperator:
503503
matvec = A.matvec if hasattr(A, "matvec") else (lambda x: A @ x)
504504
rmatvec = A.rmatvec if hasattr(A, "rmatvec") else None
505505
matmat = A.matmat if hasattr(A, "matmat") else None
506-
rmatmat = A.rmatmat if hasattr(A, "rmatmat\") else None
506+
rmatmat = A.rmatmat if hasattr(A, "rmatmat") else None
507507
return LinearOperator(
508508
(m, n),
509509
matvec=matvec,

0 commit comments

Comments
 (0)