Skip to content

Commit e836a97

Browse files
committed
format
1 parent aa010a2 commit e836a97

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/gfloat/round_ndarray.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def _iseven(v: npt.NDArray) -> npt.NDArray:
2121
return v & 0x1 == 0
2222

2323

24-
def _rnitp(x: npt.NDArray, pred: Callable[[npt.NDArray], npt.NDArray], int_type: npt.DTypeLike) -> npt.NDArray:
24+
def _rnitp(
25+
x: npt.NDArray, pred: Callable[[npt.NDArray], npt.NDArray], int_type: npt.DTypeLike
26+
) -> npt.NDArray:
2527
"""Round to nearest integer, ties to predicate"""
2628
xp = array_api_compat.array_namespace(x)
2729
floored = xp.floor(x)

test/test_round.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
@pytest.mark.parametrize("int_type", [np.int64, np.int16])
18-
def test_rnito_rnite(int_type : npt.DTypeLike) -> None:
18+
def test_rnito_rnite(int_type: npt.DTypeLike) -> None:
1919

2020
xp = array_api_compat.array_namespace(np.array(0.0))
2121
np.testing.assert_equal(_rnito(xp.array(3.5), int_type), 3.0)

0 commit comments

Comments
 (0)