mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 02:13:15 +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:
@ -4,7 +4,7 @@ import os
|
||||
try:
|
||||
from .build_directory_md import good_file_paths
|
||||
except ImportError:
|
||||
from build_directory_md import good_file_paths # type: ignore
|
||||
from build_directory_md import good_file_paths # type: ignore[no-redef]
|
||||
|
||||
filepaths = list(good_file_paths())
|
||||
assert filepaths, "good_file_paths() failed!"
|
||||
|
Reference in New Issue
Block a user