47 ), |
47 ), |
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 "A401": QCoreApplication.translate( |
|
53 "AnnotationsChecker", |
|
54 "Dynamically typed expressions (typing.Any) are disallowed", |
|
55 ), |
52 "A871": QCoreApplication.translate( |
56 "A871": QCoreApplication.translate( |
53 "AnnotationsChecker", |
57 "AnnotationsChecker", |
54 "missing 'from __future__ import annotations' but imports: {0}", |
58 "missing 'from __future__ import annotations' but imports: {0}", |
|
59 ), |
|
60 "A872": QCoreApplication.translate( |
|
61 "AnnotationsChecker", "missing 'from __future__ import annotations'" |
55 ), |
62 ), |
56 "A881": QCoreApplication.translate( |
63 "A881": QCoreApplication.translate( |
57 "AnnotationsChecker", "type annotation coverage of {0}% is too low" |
64 "AnnotationsChecker", "type annotation coverage of {0}% is too low" |
58 ), |
65 ), |
59 "A891": QCoreApplication.translate( |
66 "A891": QCoreApplication.translate( |