Skip to content

Commit 6cfdbc3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b706572 commit 6cfdbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/fibonacci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def matrix_pow_np(m: ndarray, power: int) -> ndarray:
269269
"""
270270
result = np.array([[1, 0], [0, 1]], dtype=int) # Identity Matrix
271271
base = m
272-
if(power < 0): # Negative power is not allowed
272+
if power < 0: # Negative power is not allowed
273273
raise ValueError("power is negative")
274274
while power:
275275
if power % 2 == 1:

0 commit comments

Comments
 (0)