From 940be6c025672425f7db797a9f011a4b75801ad1 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 16 Sep 2022 13:32:11 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jacob Walls --- doc/whatsnew/fragments/7467.bugfix | 2 +- pylint/checkers/classes/class_checker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/whatsnew/fragments/7467.bugfix b/doc/whatsnew/fragments/7467.bugfix index 6f28e87960e..7e76f86a07a 100644 --- a/doc/whatsnew/fragments/7467.bugfix +++ b/doc/whatsnew/fragments/7467.bugfix @@ -1,3 +1,3 @@ -``invalid-class-object`` do not crash anymore when ``__class__`` is assigned alongside another variable. +``invalid-class-object`` does not crash anymore when ``__class__`` is assigned alongside another variable. Closes #7467 diff --git a/pylint/checkers/classes/class_checker.py b/pylint/checkers/classes/class_checker.py index 00088ef512f..1770d23f257 100644 --- a/pylint/checkers/classes/class_checker.py +++ b/pylint/checkers/classes/class_checker.py @@ -684,7 +684,7 @@ def _has_same_layout_slots( "Used when a value in __slots__ conflicts with a class variable, property or method.", ), "E0243": ( - "Invalid assignement to '__class__'. Should be a class definition but got a '%s'", + "Invalid assignment to '__class__'. Should be a class definition but got a '%s'", "invalid-class-object", "Used when an invalid object is assigned to a __class__ property. " "Only a class is permitted.",