Skip to content

Commit 3fb56e4

Browse files
committed
Use \text command in math
1 parent c5624b7 commit 3fb56e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/dpnp_array.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ def __abs__(self):
119119
return dpnp.abs(self)
120120

121121
def __add__(self, other):
122-
"""Return :math:`self+value`."""
122+
r"""Return :math:`\text{self + value}`."""
123123
return dpnp.add(self, other)
124124

125125
def __and__(self, other):
126-
"""Return :math:`self&value`."""
126+
r"""Return :math:`\text{self & value}`."""
127127
return dpnp.bitwise_and(self, other)
128128

129129
def __array__(self, dtype=None, /, *, copy=None):
@@ -180,7 +180,7 @@ def __array_namespace__(self, /, *, api_version=None):
180180
# '__array_wrap__',
181181

182182
def __bool__(self):
183-
"""``True`` if self else ``False``."""
183+
"""``True`` if `self` else ``False``."""
184184
return self._array_obj.__bool__()
185185

186186
# '__class__',

0 commit comments

Comments
 (0)