--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py Wed Jan 03 16:29:32 2024 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py Wed Jan 03 17:36:30 2024 +0100 @@ -30,6 +30,7 @@ from eric7 import Preferences, Utilities from eric7.EricGui import EricPixmapCache from eric7.EricWidgets.EricApplication import ericApp +from eric7.QScintilla.Editor import EditorWarningKind from eric7.SystemUtilities import FileSystemUtilities from . import CodeStyleCheckerUtilities, pycodestyle @@ -1570,7 +1571,7 @@ editor.toggleSyntaxError(lineno, 0, True, message, True) else: editor.toggleWarning( - lineno, 0, True, message, warningType=editor.WarningStyle + lineno, 0, True, message, warningType=EditorWarningKind.Style ) editor.updateVerticalScrollBar() @@ -1606,7 +1607,7 @@ lineno = citm.data(0, self.lineRole) message = citm.data(0, self.messageRole) editor.toggleWarning( - lineno, 0, True, message, warningType=editor.WarningStyle + lineno, 0, True, message, warningType=EditorWarningKind.Style ) # go through the list again to clear warning markers for files,