Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Walls <[email protected]>
  • Loading branch information
Pierre-Sassoulas and jacobtylerwalls authored Sep 16, 2022
1 parent 8831477 commit 940be6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/whatsnew/fragments/7467.bugfix
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion pylint/checkers/classes/class_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 940be6c

Please sign in to comment.