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

branch
eric7
changeset 8773
3dd81b827455
parent 8318
962bce857696
child 8881
54e42bc2437a
equal deleted inserted replaced
8772:70f9dfe7116a 8773:3dd81b827455
47 "missing return type annotation for classmethod"), 47 "missing return type annotation for classmethod"),
48 "A301": QCoreApplication.translate( 48 "A301": QCoreApplication.translate(
49 "AnnotationsChecker", 49 "AnnotationsChecker",
50 "PEP 484 disallows both type annotations and type comments"), 50 "PEP 484 disallows both type annotations and type comments"),
51 51
52 "A871": QCoreApplication.translate(
53 "AnnotationsChecker",
54 "missing 'from __future__ import annotations' but imports: {0}"),
55
52 "A881": QCoreApplication.translate( 56 "A881": QCoreApplication.translate(
53 "AnnotationsChecker", 57 "AnnotationsChecker",
54 "type annotation coverage of {0}% is too low"), 58 "type annotation coverage of {0}% is too low"),
55 59
56 "A891": QCoreApplication.translate( 60 "A891": QCoreApplication.translate(
63 67
64 _annotationsMessagesSampleArgs = { 68 _annotationsMessagesSampleArgs = {
65 "A001": ["arg1"], 69 "A001": ["arg1"],
66 "A002": ["args"], 70 "A002": ["args"],
67 "A003": ["kwargs"], 71 "A003": ["kwargs"],
72 "A871": ["Dict, List"],
68 "A881": [60], 73 "A881": [60],
69 "A891": [5, 3], 74 "A891": [5, 3],
70 "A892": [10, 7], 75 "A892": [10, 7],
71 } 76 }

eric ide

mercurial