10 |
10 |
11 from PyQt6.QtCore import QCoreApplication |
11 from PyQt6.QtCore import QCoreApplication |
12 |
12 |
13 _pydanticMessages = { |
13 _pydanticMessages = { |
14 ## pydantic |
14 ## pydantic |
15 "PYD001": QCoreApplication.translate( |
15 "PYD-001": QCoreApplication.translate( |
16 "PydanticChecker", |
16 "PydanticChecker", |
17 "positional argument for Field default argument", |
17 "positional argument for Field default argument", |
18 ), |
18 ), |
19 "PYD002": QCoreApplication.translate( |
19 "PYD-002": QCoreApplication.translate( |
20 "PydanticChecker", |
20 "PydanticChecker", |
21 "non-annotated attribute inside Pydantic model", |
21 "non-annotated attribute inside Pydantic model", |
22 ), |
22 ), |
23 "PYD003": QCoreApplication.translate( |
23 "PYD-003": QCoreApplication.translate( |
24 "PydanticChecker", |
24 "PydanticChecker", |
25 "unecessary Field call to specify a default value", |
25 "unecessary Field call to specify a default value", |
26 ), |
26 ), |
27 "PYD004": QCoreApplication.translate( |
27 "PYD-004": QCoreApplication.translate( |
28 "PydanticChecker", |
28 "PydanticChecker", |
29 "default argument specified in annotated", |
29 "default argument specified in annotated", |
30 ), |
30 ), |
31 "PYD005": QCoreApplication.translate( |
31 "PYD-005": QCoreApplication.translate( |
32 "PydanticChecker", |
32 "PydanticChecker", |
33 "field name overrides annotation", |
33 "field name overrides annotation", |
34 ), |
34 ), |
35 "PYD006": QCoreApplication.translate( |
35 "PYD-006": QCoreApplication.translate( |
36 "PydanticChecker", |
36 "PydanticChecker", |
37 "duplicate field name", |
37 "duplicate field name", |
38 ), |
38 ), |
39 "PYD010": QCoreApplication.translate( |
39 "PYD-010": QCoreApplication.translate( |
40 "PydanticChecker", |
40 "PydanticChecker", |
41 "usage of __pydantic_config__; consider using the `with_config` decorator", |
41 "usage of __pydantic_config__; consider using the `with_config` decorator", |
42 ), |
42 ), |
43 } |
43 } |