summaryrefslogtreecommitdiff
path: root/pylint/interfaces.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-09-07 14:01:20 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-09-13 13:32:34 +0200
commite726eb40eabc29beacb18d174b3b75217326a7b9 (patch)
treec5766a94edbb7a842de7d6f30ff93cddc0c30e18 /pylint/interfaces.py
parentebae36e35447f113649b87a5dd7a3e03b793605c (diff)
downloadpylint-git-e726eb40eabc29beacb18d174b3b75217326a7b9.tar.gz
Type ``process_module`` and update argument names
Diffstat (limited to 'pylint/interfaces.py')
-rw-r--r--pylint/interfaces.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pylint/interfaces.py b/pylint/interfaces.py
index 02ed031f9..cac7e76c3 100644
--- a/pylint/interfaces.py
+++ b/pylint/interfaces.py
@@ -18,6 +18,8 @@
"""Interfaces for Pylint objects"""
from collections import namedtuple
+from astroid import nodes
+
Confidence = namedtuple("Confidence", ["name", "description"])
# Warning Certainties
HIGH = Confidence("HIGH", "No false positive possible.")
@@ -66,7 +68,7 @@ class IChecker(Interface):
class IRawChecker(IChecker):
"""interface for checker which need to parse the raw file"""
- def process_module(self, astroid):
+ def process_module(self, node: nodes.Module) -> None:
"""process a module
the module's content is accessible via astroid.stream