summaryrefslogtreecommitdiff
path: root/pylint/pyreverse/diagrams.py
diff options
context:
space:
mode:
authorDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2022-09-09 23:05:00 +0200
committerGitHub <noreply@github.com>2022-09-09 23:05:00 +0200
commit0cc82c4c0de8771c1323cc2e183497d722ea5bfe (patch)
tree85ff551d96291e647a1b865ce13df9808ad3d4c5 /pylint/pyreverse/diagrams.py
parentddde4fc074d0b4ae678f5111aafd0f54f3ddf409 (diff)
downloadpylint-git-0cc82c4c0de8771c1323cc2e183497d722ea5bfe.tar.gz
Turn on ``mypy`` strict mode 🎉 (#7448)
* Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
Diffstat (limited to 'pylint/pyreverse/diagrams.py')
-rw-r--r--pylint/pyreverse/diagrams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/pyreverse/diagrams.py b/pylint/pyreverse/diagrams.py
index 7b15bf816..a9dcd1c5e 100644
--- a/pylint/pyreverse/diagrams.py
+++ b/pylint/pyreverse/diagrams.py
@@ -143,7 +143,7 @@ class ClassDiagram(Figure, FilterMixIn):
and not decorated_with_property(m)
and self.show_attr(m.name)
]
- return sorted(methods, key=lambda n: n.name)
+ return sorted(methods, key=lambda n: n.name) # type: ignore[no-any-return]
def add_object(self, title: str, node: nodes.ClassDef) -> None:
"""Create a diagram object."""