Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Nov 8, 2023
1 parent 522f3b6 commit d387f07
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ape/api/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1466,9 +1466,9 @@ class YieldAction:
# Pretend we _did_ yield the last confirmed item, for logic's sake.
fake_last_block = self.get_block(self.web3.eth.block_number - required_confirmations)
# NOTE: type warning ignored due to pydantic compat issue
last = YieldAction( # type: ignore
last = YieldAction(
number=fake_last_block.number, hash=fake_last_block.hash, time=time.time()
)
) # type: ignore

# A helper method for various points of ensuring we didn't timeout.
def assert_chain_activity():
Expand Down Expand Up @@ -1536,7 +1536,9 @@ def assert_chain_activity():
return

# Set the last action, used for checking timeouts and re-orgs.
last = YieldAction(number=block.number, hash=block.hash, time=time.time()) # type: ignore
last = YieldAction(
number=block.number, hash=block.hash, time=time.time()
) # type: ignore

def poll_logs(
self,
Expand Down

0 comments on commit d387f07

Please sign in to comment.