Skip to content

Commit 376c6ee

Browse files
committed
simpler docstring for _scalar_sign
1 parent 35433a4 commit 376c6ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lineax/_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ def _(operator, check=check):
19871987

19881988

19891989
def _scalar_sign(scalar) -> int | None:
1990-
"""Returns 1 if positive, -1 if negative, 0 if zero, None if unknown (traced)."""
1990+
"""Returns scalar sign if known at trace time otherwise None."""
19911991
try:
19921992
if scalar > 0:
19931993
return 1

0 commit comments

Comments
 (0)