Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/whatsnew/fragments/8478.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Following a deprecation period, the ``check_single_file`` function of the
``Pylinter`` is replaced by ``Pylinter.check_single_file_item``.

Refs #8478
10 changes: 0 additions & 10 deletions pylint/lint/pylinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import sys
import tokenize
import traceback
import warnings
from collections import defaultdict
from collections.abc import Callable, Iterator, Sequence
from io import TextIOWrapper
Expand Down Expand Up @@ -714,15 +713,6 @@ def _get_asts(

return ast_per_fileitem

def check_single_file(self, name: str, filepath: str, modname: str) -> None:
warnings.warn(
"In pylint 3.0, the checkers check_single_file function will be removed. "
"Use check_single_file_item instead.",
DeprecationWarning,
stacklevel=2,
)
self.check_single_file_item(FileItem(name, filepath, modname))

def check_single_file_item(self, file: FileItem) -> None:
"""Check single file item.

Expand Down