Skip to content

Commit

Permalink
chore: fix mypy (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Apr 11, 2024
1 parent 99ce2f8 commit 295ee58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion y/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def last_block_on_date(date: Union[str, datetime.date]) -> int:


@a_sync.a_sync(cache_type='memory', ram_cache_ttl=ENVS.CACHE_TTL)
async def get_block_at_timestamp(timestamp: datetime) -> int:
async def get_block_at_timestamp(timestamp: datetime.datetime) -> int:
import y._db.utils.utils as db
if block_at_timestamp := await db.get_block_at_timestamp(timestamp):
return block_at_timestamp
Expand Down

0 comments on commit 295ee58

Please sign in to comment.