src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/translations.py

branch
eric7
changeset 10168
8312e0e76795
parent 10116
4a619fb7bd09
child 10170
6cf1ee737d8f
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Tue Aug 29 16:50:17 2023 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Tue Aug 29 16:55:01 2023 +0200
@@ -197,7 +197,9 @@
         "pycodestyle", "test for object identity should be 'is not'"
     ),
     "E721": QCoreApplication.translate(
-        "pycodestyle", "do not compare types, use 'isinstance()'"
+        "pycodestyle",
+        "do not compare types, for exact checks use 'is' / 'is not', "
+        "for instance checks use 'isinstance()'"
     ),
     "E722": QCoreApplication.translate("pycodestyle", "do not use bare except"),
     "E731": QCoreApplication.translate(
@@ -233,16 +235,6 @@
     "W505": QCoreApplication.translate(
         "pycodestyle", "doc line too long ({0} > {1} characters)"
     ),
-    "W601": QCoreApplication.translate(
-        "pycodestyle", ".has_key() is deprecated, use 'in'"
-    ),
-    "W602": QCoreApplication.translate(
-        "pycodestyle", "deprecated form of raising exception"
-    ),
-    "W603": QCoreApplication.translate("pycodestyle", "'<>' is deprecated, use '!='"),
-    "W604": QCoreApplication.translate(
-        "pycodestyle", "backticks are deprecated, use 'repr()'"
-    ),
     "W605": QCoreApplication.translate(
         "pycodestyle", "invalid escape sequence '\\{0}'"
     ),

eric ide

mercurial