Skip to content

Commit 05e0fbf

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent da2da8b commit 05e0fbf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pylint/lint/run.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@
99
import sys
1010
import warnings
1111
from collections import defaultdict
12-
from typing import Iterator, List
1312
from collections.abc import Sequence
1413
from pathlib import Path
15-
from typing import Any
14+
from typing import Iterator, List
1615

1716
from pylint import config
1817
from pylint.config.config_initialization import _config_initialization
1918
from pylint.config.exceptions import ArgumentPreprocessingError
2019
from pylint.config.utils import _preprocess_options
21-
from pylint.constants import full_version
2220
from pylint.lint.base_options import _make_run_options
2321
from pylint.lint.pylinter import PyLinter
2422
from pylint.reporters.base_reporter import BaseReporter
@@ -269,7 +267,7 @@ def _discover_files(files_or_modules: Sequence[str]) -> Iterator[str]:
269267
if os.path.isdir(something) and not os.path.isfile(
270268
os.path.join(something, "__init__.py")
271269
):
272-
skip_subtrees: List[str] = []
270+
skip_subtrees: list[str] = []
273271
for root, _, files in os.walk(something):
274272
if any(root.startswith(s) for s in skip_subtrees):
275273
# Skip subtree of already discovered package.

0 commit comments

Comments
 (0)