From 0cc82c4c0de8771c1323cc2e183497d722ea5bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Fri, 9 Sep 2022 23:05:00 +0200 Subject: =?UTF-8?q?Turn=20on=20``mypy``=20strict=20mode=20=F0=9F=8E=89=20?= =?UTF-8?q?=20(#7448)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode --- pylint/pyreverse/diagrams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pylint/pyreverse/diagrams.py') 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.""" -- cgit v1.2.1