--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py Wed Jul 13 14:55:47 2022 +0200 @@ -13,56 +13,55 @@ _annotationsMessages = { "A001": QCoreApplication.translate( - "AnnotationsChecker", - "missing type annotation for function argument '{0}'"), + "AnnotationsChecker", "missing type annotation for function argument '{0}'" + ), "A002": QCoreApplication.translate( - "AnnotationsChecker", - "missing type annotation for '*{0}'"), + "AnnotationsChecker", "missing type annotation for '*{0}'" + ), "A003": QCoreApplication.translate( - "AnnotationsChecker", - "missing type annotation for '**{0}'"), + "AnnotationsChecker", "missing type annotation for '**{0}'" + ), "A101": QCoreApplication.translate( - "AnnotationsChecker", - "missing type annotation for 'self' in method"), + "AnnotationsChecker", "missing type annotation for 'self' in method" + ), "A102": QCoreApplication.translate( - "AnnotationsChecker", - "missing type annotation for 'cls' in classmethod"), + "AnnotationsChecker", "missing type annotation for 'cls' in classmethod" + ), "A201": QCoreApplication.translate( - "AnnotationsChecker", - "missing return type annotation for public function"), + "AnnotationsChecker", "missing return type annotation for public function" + ), "A202": QCoreApplication.translate( - "AnnotationsChecker", - "missing return type annotation for protected function"), + "AnnotationsChecker", "missing return type annotation for protected function" + ), "A203": QCoreApplication.translate( - "AnnotationsChecker", - "missing return type annotation for private function"), + "AnnotationsChecker", "missing return type annotation for private function" + ), "A204": QCoreApplication.translate( - "AnnotationsChecker", - "missing return type annotation for special method"), + "AnnotationsChecker", "missing return type annotation for special method" + ), "A205": QCoreApplication.translate( - "AnnotationsChecker", - "missing return type annotation for staticmethod"), + "AnnotationsChecker", "missing return type annotation for staticmethod" + ), "A206": QCoreApplication.translate( - "AnnotationsChecker", - "missing return type annotation for classmethod"), + "AnnotationsChecker", "missing return type annotation for classmethod" + ), "A301": QCoreApplication.translate( "AnnotationsChecker", - "PEP 484 disallows both type annotations and type comments"), - + "PEP 484 disallows both type annotations and type comments", + ), "A871": QCoreApplication.translate( "AnnotationsChecker", - "missing 'from __future__ import annotations' but imports: {0}"), - + "missing 'from __future__ import annotations' but imports: {0}", + ), "A881": QCoreApplication.translate( - "AnnotationsChecker", - "type annotation coverage of {0}% is too low"), - + "AnnotationsChecker", "type annotation coverage of {0}% is too low" + ), "A891": QCoreApplication.translate( - "AnnotationsChecker", - "type annotation is too complex ({0} > {1})"), + "AnnotationsChecker", "type annotation is too complex ({0} > {1})" + ), "A892": QCoreApplication.translate( - "AnnotationsChecker", - "type annotation is too long ({0} > {1})"), + "AnnotationsChecker", "type annotation is too long ({0} > {1})" + ), } _annotationsMessagesSampleArgs = {