Use TypeError/ValueError instead of AssertionError in simpson_integration #18228
Annotations
6 errors
|
ruff
Process completed with exit code 1.
|
|
ruff (EM102):
maths/numerical_analysis/integration_by_simpson_approx.py#L110
maths/numerical_analysis/integration_by_simpson_approx.py:110:13: EM102 Exception must not use an f-string literal, assign to variable first
help: Assign to variable; remove f-string literal
|
|
ruff (EM102):
maths/numerical_analysis/integration_by_simpson_approx.py#L107
maths/numerical_analysis/integration_by_simpson_approx.py:107:25: EM102 Exception must not use an f-string literal, assign to variable first
help: Assign to variable; remove f-string literal
|
|
ruff (EM102):
maths/numerical_analysis/integration_by_simpson_approx.py#L103
maths/numerical_analysis/integration_by_simpson_approx.py:103:13: EM102 Exception must not use an f-string literal, assign to variable first
help: Assign to variable; remove f-string literal
|
|
ruff (EM102):
maths/numerical_analysis/integration_by_simpson_approx.py#L100
maths/numerical_analysis/integration_by_simpson_approx.py:100:25: EM102 Exception must not use an f-string literal, assign to variable first
help: Assign to variable; remove f-string literal
|
|
ruff (EM102):
maths/numerical_analysis/integration_by_simpson_approx.py#L97
maths/numerical_analysis/integration_by_simpson_approx.py:97:13: EM102 Exception must not use an f-string literal, assign to variable first
help: Assign to variable; remove f-string literal
|