Skip to content

Commit 913b627

Browse files
committed
@bisgaard-itis review: verbatim
1 parent 71cf70a commit 913b627

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/llm-prompts/pydantic-annotated-fields.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Prompt
22

3+
```
34
Please convert all pydantic model fields that use `Field()` with default values to use the Annotated pattern instead.
45
Follow these guidelines:
56
@@ -9,7 +10,7 @@ Follow these guidelines:
910
4. Add the import: `from common_library.basic_types import DEFAULT_FACTORY` if it's not already present.
1011
5. If `Field()` has no parameters (empty), don't use Annotated at all. Just use: `field_name: field_type = default_value`.
1112
6. Leave any model validations, `model_config` settings, and `field_validators` untouched.
12-
13+
```
1314
## Examples
1415

1516
### Before:

0 commit comments

Comments
 (0)