Skip to content

Commit

Permalink
apply isort
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Feb 17, 2022
1 parent 8aeac7d commit c7b6b3d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions chia/util/full_block_utils.py
@@ -1,8 +1,9 @@
from typing import Optional, Callable
from typing import Callable, Optional

from chia.types.blockchain_format.program import SerializedProgram
from clvm_rs import serialized_length
from blspy import G1Element, G2Element
from clvm_rs import serialized_length

from chia.types.blockchain_format.program import SerializedProgram


def skip_list(buf: memoryview, skip_item: Callable[[memoryview], memoryview]) -> memoryview:
Expand Down
2 changes: 1 addition & 1 deletion chia/util/struct_stream.py
@@ -1,8 +1,8 @@
import io
import struct
from typing import Any, BinaryIO, SupportsInt, Type, TypeVar, Union
from typing_extensions import SupportsIndex, Protocol

from typing_extensions import Protocol, SupportsIndex

_T_StructStream = TypeVar("_T_StructStream", bound="StructStream")

Expand Down
14 changes: 7 additions & 7 deletions tests/util/test_full_block_utils.py
@@ -1,23 +1,23 @@
import random

import pytest

from chia.util.full_block_utils import generator_from_block
from chia.types.full_block import FullBlock
from chia.util.ints import uint128, uint64, uint32, uint8
from benchmarks.utils import rand_bytes, rand_g1, rand_g2, rand_hash, rand_vdf, rand_vdf_proof, rewards
from chia.types.blockchain_format.foliage import Foliage, FoliageBlockData, FoliageTransactionBlock, TransactionsInfo
from chia.types.blockchain_format.pool_target import PoolTarget
from chia.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo, FoliageBlockData
from chia.types.blockchain_format.program import SerializedProgram
from chia.types.blockchain_format.proof_of_space import ProofOfSpace
from chia.types.blockchain_format.reward_chain_block import RewardChainBlock
from chia.types.blockchain_format.program import SerializedProgram
from chia.types.blockchain_format.slots import (
ChallengeChainSubSlot,
InfusedChallengeChainSubSlot,
RewardChainSubSlot,
SubSlotProofs,
)
from chia.types.end_of_slot_bundle import EndOfSubSlotBundle

from benchmarks.utils import rand_hash, rand_bytes, rewards, rand_g1, rand_g2, rand_vdf, rand_vdf_proof
from chia.types.full_block import FullBlock
from chia.util.full_block_utils import generator_from_block
from chia.util.ints import uint8, uint32, uint64, uint128

test_g2s = [rand_g2() for _ in range(10)]
test_g1s = [rand_g1() for _ in range(10)]
Expand Down

0 comments on commit c7b6b3d

Please sign in to comment.