Update dataclass_transforms.md (#2820)

Fix typo in example code for field definition.
This commit is contained in:
Martin DeMello 2022-01-05 21:45:59 -08:00 committed by GitHub
parent 4fe3f1f7c0
commit 597ccabd07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,7 +329,7 @@ def create_model(
# Code that imports this library:
@create_model(init=False)
class CustomerModel:
id: int = ModelField(resolver=lambda : 0)
id: int = model_field(resolver=lambda : 0)
name: str
```