Skip to content

Commit

Permalink
Add return type
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 committed Jan 16, 2025
1 parent bbb9171 commit 133a83b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/datasources/db/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime, timezone
from typing import AsyncIterator, cast
from typing import AsyncGenerator, AsyncIterator, cast

from sqlmodel import (
JSON,
Expand Down Expand Up @@ -302,7 +302,9 @@ async def get_contracts_without_abi(
yield contract

@classmethod
async def get_proxy_contracts(cls, session: AsyncSession):
async def get_proxy_contracts(
cls, session: AsyncSession
) -> AsyncGenerator["Contract"]:
"""
Return all the contracts with implementation address, so proxy contracts.
Expand Down

0 comments on commit 133a83b

Please sign in to comment.