Enable ruff RUF005 rule

This commit is contained in:
MaximSmolskiy
2024-04-02 19:59:41 +03:00
parent f8cdb3e948
commit f5ed227553
4 changed files with 7 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ def odd_sieve(num: int) -> list[int]:
0, ceil((num - i_squared) / (i << 1))
)
return [2] + list(compress(range(3, num, 2), sieve))
return [2, *list(compress(range(3, num, 2), sieve))]
if __name__ == "__main__":