Skip to content

Commit 608cafc

Browse files
fix: memperbaiki CodeQL
1 parent f9b6ab0 commit 608cafc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

math/rieman_integral.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def rieman_integral(fungsiHitung: Callable[[float], float],
2323
left = a + i * delta_x
2424
right = left + delta_x
2525

26+
if not callable(fungsiHitung):
27+
raise TypeError("Fungsi harus cabble")
2628
if approx == "kiri":
2729
x_i = left
2830
elif approx == "kanan":

0 commit comments

Comments
 (0)