Skip to content

Commit 42da174

Browse files
committed
lint
1 parent 542da61 commit 42da174

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/array_api_extra/_delegation.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def isclose(
4343
Return a boolean array where two arrays are element-wise equal within a tolerance.
4444
4545
The tolerance values are positive, typically very small numbers. The relative
46-
difference ``(rtol * abs(b))`` and the absolute difference `atol` are added together to
47-
compare against the absolute difference between `a` and `b`.
46+
difference ``(rtol * abs(b))`` and the absolute difference `atol` are added together
47+
to compare against the absolute difference between `a` and `b`.
4848
49-
NaNs are treated as equal if they are in the same place and if ``equal_nan=True``. Infs
50-
are treated as equal if they are in the same place and of the same sign in both
49+
NaNs are treated as equal if they are in the same place and if ``equal_nan=True``.
50+
Infs are treated as equal if they are in the same place and of the same sign in both
5151
arrays.
5252
5353
Parameters
@@ -86,7 +86,8 @@ def isclose(
8686
8787
absolute(a - b) <= (atol + rtol * absolute(b))
8888
89-
Unlike the built-in `math.isclose`, the above equation is not symmetric in `a` and `b`,
89+
Unlike the built-in `math.isclose`,
90+
the above equation is not symmetric in `a` and `b`,
9091
so that ``isclose(a, b)`` might be different from ``isclose(b, a)`` in some rare
9192
cases.
9293
@@ -101,8 +102,8 @@ def isclose(
101102
`b` need not have the same shape in order for ``isclose(a, b)`` to evaluate to
102103
``True``.
103104
104-
`isclose` is not defined for non-numeric data types. ``bool`` is considered a numeric
105-
data-type for this purpose.
105+
`isclose` is not defined for non-numeric data types.
106+
``bool`` is considered a numeric data-type for this purpose.
106107
"""
107108
xp = array_namespace(a, b) if xp is None else xp
108109

0 commit comments

Comments
 (0)