From fbde81146a8f0a02820cfc472222abbfc7c2fa43 Mon Sep 17 00:00:00 2001 From: Chaoying <32626585+Chaoyingz@users.noreply.github.com> Date: Sun, 9 Jun 2024 20:37:01 +0800 Subject: [PATCH] Add missing parentheses to get_pydantic call (#1344) --- docs/models/methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/models/methods.md b/docs/models/methods.md index 85f6e58..7dabc42 100644 --- a/docs/models/methods.md +++ b/docs/models/methods.md @@ -318,7 +318,7 @@ class Item(ormar.Model): You can generate pydantic models out of it with a one simple call. ```python -PydanticCategory = Category.get_pydantic(include={"id", "name"} +PydanticCategory = Category.get_pydantic(include={"id", "name"}) ``` Which will generate model equivalent of: