Skip to content

Commit

Permalink
Update abstract.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ProFastCode authored Feb 7, 2024
1 parent f733114 commit 65468ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/database/repositories/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import abc
from typing import Generic, TypeVar
from typing import Generic, TypeVar, Optional, List, Any

import sqlalchemy as sa
from sqlalchemy.ext.asyncio import AsyncSession
Expand All @@ -29,7 +29,7 @@ async def get_by_where(self, whereclause) -> AbstractModel | None:
return (await self.session.execute(statement)).unique().scalar_one_or_none()

async def get_many(
self, whereclause: list = None, limit: int = None, order_by=None
self, whereclause: Optional [List[Any]] = None, limit: int = None, order_by=None
):
statement = sa.select(self.type_model).limit(limit).order_by(order_by)
if whereclause:
Expand Down

0 comments on commit 65468ce

Please sign in to comment.