summaryrefslogtreecommitdiff
path: root/pylint/checkers/utils.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-07-07 20:04:28 +0200
committerGitHub <noreply@github.com>2022-07-07 20:04:28 +0200
commit899253be4f8d5ca719bf092b6fda99ff1bf8ae0f (patch)
tree2460b9657d3acda2b6076e6d8d9ddee45092bd5c /pylint/checkers/utils.py
parenta4c334f0c4c08e396be3c4407083c914abd1a47f (diff)
downloadpylint-git-899253be4f8d5ca719bf092b6fda99ff1bf8ae0f.tar.gz
Add partial typing to ``class_checker`` (#7088)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'pylint/checkers/utils.py')
-rw-r--r--pylint/checkers/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index 317cd91f2..2f706b5e0 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -924,7 +924,7 @@ def uninferable_final_decorators(
@lru_cache(maxsize=1024)
def unimplemented_abstract_methods(
node: nodes.ClassDef, is_abstract_cb: nodes.FunctionDef = None
-) -> dict[str, nodes.NodeNG]:
+) -> dict[str, nodes.FunctionDef]:
"""Get the unimplemented abstract methods for the given *node*.
A method can be considered abstract if the callback *is_abstract_cb*
@@ -937,7 +937,7 @@ def unimplemented_abstract_methods(
"""
if is_abstract_cb is None:
is_abstract_cb = partial(decorated_with, qnames=ABC_METHODS)
- visited: dict[str, nodes.NodeNG] = {}
+ visited: dict[str, nodes.FunctionDef] = {}
try:
mro = reversed(node.mro())
except NotImplementedError: