mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 03:07:46 +08:00
Fix some warnings from LGTM (#2420)
* fix assignment of a variable to itself * Fix unnecessary 'else' clause in loop * formatting and redundant reasignment fix * mark unreachable code with a TODO comment * fix variable defined multiple times * fix static method without static decorator * revert unintended autoformatting Co-authored-by: Christian Clauss <cclauss@me.com> * revert autoformatting issue * applied black autoformatting Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -44,7 +44,6 @@ def pi(precision: int) -> str:
|
||||
getcontext().prec = precision
|
||||
num_iterations = ceil(precision / 14)
|
||||
constant_term = 426880 * Decimal(10005).sqrt()
|
||||
multinomial_term = 1
|
||||
exponential_term = 1
|
||||
linear_term = 13591409
|
||||
partial_sum = Decimal(linear_term)
|
||||
|
Reference in New Issue
Block a user