flake8: Fix issues after update (#13997)

This commit is contained in:
dustinface 2022-11-24 20:32:04 +01:00 committed by GitHub
parent 6edb2ce01e
commit bea4928741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 9 deletions

View file

@ -91,11 +91,6 @@ def _get_second_to_last_transaction_block_in_previous_epoch(
# a block in the previous epoch, which would be height < 0
return _get_blocks_at_height(blocks, last_b, uint32(0))[0]
# If the prev slot is the first slot, the iterations start at 0
# We will compute the timestamps of the 2nd to last block in epoch, as well as the total iterations at infusion
prev_slot_start_iters: uint128
prev_slot_time_start: uint64
# The target block must be in this range. Either the surpass block must be a transaction block, or something
# in it's sub slot must be a transaction block. If that is the only transaction block in the sub-slot, the last
# block in the previous sub-slot from that must also be a transaction block (therefore -1 is used).

View file

@ -176,8 +176,6 @@ class WalletTool:
def sign_transaction(self, coin_spends: List[CoinSpend]) -> SpendBundle:
signatures = []
solution: Program
puzzle: Program
for coin_spend in coin_spends: # noqa
secret_key = self.get_private_key_for_puzzle_hash(coin_spend.coin.puzzle_hash)
synthetic_secret_key = calculate_synthetic_secret_key(secret_key, DEFAULT_HIDDEN_PUZZLE_HASH)

View file

@ -18,8 +18,6 @@ def skip(path: Path) -> bool:
def subdirs(per: str) -> List[Path]:
dirs: List[Path]
if per == "directory":
glob_pattern = "**/"
elif per == "file":