From d387f07f31eec142471870e7c0cd6a97eca1324e Mon Sep 17 00:00:00 2001 From: z80 Date: Wed, 8 Nov 2023 06:33:45 -0500 Subject: [PATCH] fix: lint --- src/ape/api/providers.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ape/api/providers.py b/src/ape/api/providers.py index ee5258b63b..3b24beacf0 100644 --- a/src/ape/api/providers.py +++ b/src/ape/api/providers.py @@ -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(): @@ -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,