@@ -107,7 +107,7 @@ async def get_items(
107
107
title : str | None ,
108
108
id : UUID | list [UUID ] | None = None ,
109
109
** kwargs : Any ,
110
- ) -> Sequence [T .__name__ ]:
110
+ ) -> Sequence [T .__name__ ]: # type: ignore[name-defined]
111
111
return cast (
112
112
Sequence [T ],
113
113
await read_items_by_attrs (transaction , table , title = title , id = id , ** kwargs ),
@@ -119,7 +119,7 @@ async def get_item_by_id(
119
119
table : Any ,
120
120
transaction : "AsyncSession" ,
121
121
id : UUID ,
122
- ) -> T .__name__ :
122
+ ) -> T .__name__ : # type: ignore[name-defined]
123
123
return cast (
124
124
T ,
125
125
await read_item_by_id (session = transaction , table = table , id = id ),
@@ -171,7 +171,7 @@ async def get_items(
171
171
title : str | None ,
172
172
id : UUID | list [UUID ] | None = None ,
173
173
** kwargs : Any ,
174
- ) -> Sequence [V .__name__ ]:
174
+ ) -> Sequence [V .__name__ ]: # type: ignore[name-defined]
175
175
return cast (
176
176
Sequence [V ],
177
177
await read_items_by_attrs (
@@ -180,7 +180,7 @@ async def get_items(
180
180
)
181
181
182
182
@get ("/{id:uuid}" )
183
- async def get_item_by_id (self , table : Any , transaction : AsyncSession , id : UUID ) -> V .__name__ :
183
+ async def get_item_by_id (self , table : Any , transaction : AsyncSession , id : UUID ) -> V .__name__ : # type: ignore[name-defined]
184
184
data = await read_item_by_id (transaction , table , id , self .selectinload_attrs )
185
185
return cast (V , self .dataclass .from_orm (data ))
186
186
@@ -193,7 +193,7 @@ async def create_item(self, table: Any, transaction: AsyncSession, data: V.__nam
193
193
return cast (V , self .dataclass .from_orm (table_data ))
194
194
195
195
@put ("{id:uuid}" )
196
- async def update_item (self , table : Any , transaction : AsyncSession , data : V .__name__ , id : UUID ) -> V .__name__ :
196
+ async def update_item (self , table : Any , transaction : AsyncSession , data : V .__name__ , id : UUID ) -> V .__name__ : # type: ignore[name-defined]
197
197
# Fetch item
198
198
item = cast (
199
199
T ,
0 commit comments