Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: precommit mypy #2017

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import argparse
import asyncio
import logging
import typing

from eth_account.account import Account
from secrets import randbits

Expand All @@ -16,6 +18,7 @@
Bytes32,
BidStatus,
BidStatusUpdate,
OpportunityEvm,
)

logger = logging.getLogger(__name__)
Expand All @@ -40,7 +43,7 @@ def __init__(

def assess_opportunity(
self,
opp: Opportunity,
opp: OpportunityEvm,
) -> BidEvm | None:
"""
Assesses whether an opportunity is worth executing; if so, returns a Bid object.
Expand Down Expand Up @@ -72,7 +75,7 @@ async def opportunity_callback(self, opp: Opportunity):
Args:
opp: An object representing a single opportunity.
"""
bid = self.assess_opportunity(opp)
bid = self.assess_opportunity(typing.cast(OpportunityEvm, opp))
if bid:
try:
await self.client.submit_bid(bid)
Expand Down
Loading