eric6/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py

changeset 8244
ed8cb108b27b
parent 8198
1c765dc90c21
equal deleted inserted replaced
8243:cc717c2ae956 8244:ed8cb108b27b
43 "AnnotationsChecker", 43 "AnnotationsChecker",
44 "missing return type annotation for staticmethod"), 44 "missing return type annotation for staticmethod"),
45 "A206": QCoreApplication.translate( 45 "A206": QCoreApplication.translate(
46 "AnnotationsChecker", 46 "AnnotationsChecker",
47 "missing return type annotation for classmethod"), 47 "missing return type annotation for classmethod"),
48 "A301": QCoreApplication.translate(
49 "AnnotationsChecker",
50 "PEP 484 disallows both type annotations and type comments"),
48 51
49 "A881": QCoreApplication.translate( 52 "A881": QCoreApplication.translate(
50 "AnnotationsChecker", 53 "AnnotationsChecker",
51 "type annotation coverage of {0}% is too low"), 54 "type annotation coverage of {0}% is too low"),
52 55
53 "A891": QCoreApplication.translate( 56 "A891": QCoreApplication.translate(
54 "AnnotationsChecker", 57 "AnnotationsChecker",
55 "type annotation is too complex ({0} > {1})"), 58 "type annotation is too complex ({0} > {1})"),
59 "A892": QCoreApplication.translate(
60 "AnnotationsChecker",
61 "type annotation is too long ({0} > {1})"),
56 } 62 }
57 63
58 _annotationsMessagesSampleArgs = { 64 _annotationsMessagesSampleArgs = {
59 "A001": ["arg1"], 65 "A001": ["arg1"],
60 "A002": ["args"], 66 "A002": ["args"],
61 "A003": ["kwargs"], 67 "A003": ["kwargs"],
62 "A881": [60], 68 "A881": [60],
63 "A891": [5, 3], 69 "A891": [5, 3],
70 "A892": [10, 7],
64 } 71 }

eric ide

mercurial