From a5500bff878451f6ef78e42731766ed9f7bd961b Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Tue, 14 Jan 2025 11:01:45 +0000 Subject: [PATCH] fix linter errors --- piccolo_admin/endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piccolo_admin/endpoints.py b/piccolo_admin/endpoints.py index f1872385..253a2db6 100644 --- a/piccolo_admin/endpoints.py +++ b/piccolo_admin/endpoints.py @@ -100,13 +100,13 @@ class GroupItem(BaseModel): class GroupedTableNamesResponseModel(BaseModel): - grouped: t.Dict[str, t.List[str]] = Field(default_factory=list) + grouped: t.Dict[str, t.List[str]] = Field(default_factory=dict) ungrouped: t.List[str] = Field(default_factory=list) class GroupedFormsResponseModel(BaseModel): grouped: t.Dict[str, t.List[FormConfigResponseModel]] = Field( - default_factory=list + default_factory=dict ) ungrouped: t.List[FormConfigResponseModel] = Field(default_factory=list)