mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 03:07:46 +08:00
Enable ruff PGH003 rule (#11345)
* Enable ruff PGH003 rule * Fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -68,7 +68,7 @@ def chain(number: int) -> bool:
|
||||
"""
|
||||
|
||||
if CHAINS[number - 1] is not None:
|
||||
return CHAINS[number - 1] # type: ignore
|
||||
return CHAINS[number - 1] # type: ignore[return-value]
|
||||
|
||||
number_chain = chain(next_number(number))
|
||||
CHAINS[number - 1] = number_chain
|
||||
|
@ -15,7 +15,7 @@ the last nine digits are 1-9 pandigital, find k.
|
||||
|
||||
import sys
|
||||
|
||||
sys.set_int_max_str_digits(0) # type: ignore
|
||||
sys.set_int_max_str_digits(0)
|
||||
|
||||
|
||||
def check(number: int) -> bool:
|
||||
|
Reference in New Issue
Block a user