Skip to content

Commit 58925f3

Browse files
Update electric_power.py
1 parent 0657178 commit 58925f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

electronics/electric_power.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def electric_power(voltage: float, current: float, power: float) -> tuple:
5050
elif power == 0:
5151
return Result("power", float(round(abs(voltage * current), 2)))
5252
else:
53-
assert False
53+
raise AssertionError()
5454

5555

5656
if __name__ == "__main__":

0 commit comments

Comments
 (0)