Skip to content

Commit 6bf4154

Browse files
authored
Default con should be None
1 parent 08d0a2a commit 6bf4154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apgorm/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ async def fetch(
238238

239239
@classmethod
240240
async def fetchmany(
241-
cls: Type[_SELF], con: Connection | None, /, **values: Any
241+
cls: Type[_SELF], con: Connection | None = None, /, **values: Any
242242
) -> LazyList[dict[str, Any], _SELF]:
243243
"""Fetch multiple models from the database.
244244

0 commit comments

Comments
 (0)