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})"), |
56 |
59 "A892": QCoreApplication.translate( |
57 "A999": QCoreApplication.translate( |
|
58 "AnnotationsChecker", |
60 "AnnotationsChecker", |
59 "{0}: {1}"), |
61 "type annotation is too long ({0} > {1})"), |
60 } |
62 } |
61 |
63 |
62 _annotationsMessagesSampleArgs = { |
64 _annotationsMessagesSampleArgs = { |
63 "A001": ["arg1"], |
65 "A001": ["arg1"], |
64 "A002": ["args"], |
66 "A002": ["args"], |
65 "A003": ["kwargs"], |
67 "A003": ["kwargs"], |
66 "A881": [60], |
68 "A881": [60], |
67 "A891": [5, 3], |
69 "A891": [5, 3], |
68 "A999": ["SyntaxError", "Invalid Syntax"], |
70 "A892": [10, 7], |
69 } |
71 } |