File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 9
9
import sys
10
10
import warnings
11
11
from collections import defaultdict
12
- from typing import Iterator , List
13
12
from collections .abc import Sequence
14
13
from pathlib import Path
15
- from typing import Any
14
+ from typing import Iterator , List
16
15
17
16
from pylint import config
18
17
from pylint .config .config_initialization import _config_initialization
19
18
from pylint .config .exceptions import ArgumentPreprocessingError
20
19
from pylint .config .utils import _preprocess_options
21
- from pylint .constants import full_version
22
20
from pylint .lint .base_options import _make_run_options
23
21
from pylint .lint .pylinter import PyLinter
24
22
from pylint .reporters .base_reporter import BaseReporter
@@ -269,7 +267,7 @@ def _discover_files(files_or_modules: Sequence[str]) -> Iterator[str]:
269
267
if os .path .isdir (something ) and not os .path .isfile (
270
268
os .path .join (something , "__init__.py" )
271
269
):
272
- skip_subtrees : List [str ] = []
270
+ skip_subtrees : list [str ] = []
273
271
for root , _ , files in os .walk (something ):
274
272
if any (root .startswith (s ) for s in skip_subtrees ):
275
273
# Skip subtree of already discovered package.
You can’t perform that action at this time.
0 commit comments