43 "AnnotationsChecker", "missing return type annotation for staticmethod" |
43 "AnnotationsChecker", "missing return type annotation for staticmethod" |
44 ), |
44 ), |
45 "A206": QCoreApplication.translate( |
45 "A206": QCoreApplication.translate( |
46 "AnnotationsChecker", "missing return type annotation for classmethod" |
46 "AnnotationsChecker", "missing return type annotation for classmethod" |
47 ), |
47 ), |
48 "A301": QCoreApplication.translate( |
|
49 "AnnotationsChecker", |
|
50 "PEP 484 disallows both type annotations and type comments", |
|
51 ), |
|
52 "A401": QCoreApplication.translate( |
48 "A401": QCoreApplication.translate( |
53 "AnnotationsChecker", |
49 "AnnotationsChecker", |
54 "Dynamically typed expressions (typing.Any) are disallowed", |
50 "Dynamically typed expressions (typing.Any) are disallowed", |
|
51 ), |
|
52 "A402": QCoreApplication.translate( |
|
53 "AnnotationsChecker", "Type comments are disallowed" |
55 ), |
54 ), |
56 "A871": QCoreApplication.translate( |
55 "A871": QCoreApplication.translate( |
57 "AnnotationsChecker", |
56 "AnnotationsChecker", |
58 "missing 'from __future__ import annotations' but imports: {0}", |
57 "missing 'from __future__ import annotations' but imports: {0}", |
59 ), |
58 ), |