Skip to content

Commit 5b573f9

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

physics/relativistic_velocity_summation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ def relativistic_velocity_summation(
2626
...
2727
ValueError: Speeds must not exceed light speed...
2828
"""
29-
if (object_velocity > c or frame_velocity >= c or
30-
object_velocity < -c or frame_velocity <= -c):
29+
if (
30+
object_velocity > c
31+
or frame_velocity >= c
32+
or object_velocity < -c
33+
or frame_velocity <= -c
34+
):
3135
raise ValueError(
3236
"Speeds must not exceed light speed, and "
3337
"the frame speed must be lower than the light speed!"

0 commit comments

Comments
 (0)