Skip to content

Commit

Permalink
-> and fix some type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Oct 5, 2018
1 parent 3061a48 commit df73159
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
docker:
- image: circleci/python:3.5
environment:
TOXENV: lint-py35
TOXENV: py35-lint
py36-lint:
<<: *common
docker:
Expand Down
2 changes: 1 addition & 1 deletion eth/utils/blake.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from hashlib import blake2b
from hashlib import blake2b # type: ignore


def blake(data: bytes) -> bytes:
Expand Down
3 changes: 2 additions & 1 deletion eth/vm/forks/byzantium/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class ByzantiumVM(SpuriousDragonVM):
compute_difficulty = staticmethod(compute_byzantium_difficulty)
configure_header = configure_byzantium_header
make_receipt = staticmethod(make_byzantium_receipt)
get_uncle_reward = staticmethod(get_uncle_reward(EIP649_BLOCK_REWARD))
get_uncle_reward = get_uncle_reward(EIP649_BLOCK_REWARD)
get_uncle_reward = staticmethod(get_uncle_reward)

@classmethod
def validate_receipt(cls, receipt: Receipt) -> None:
Expand Down
4 changes: 2 additions & 2 deletions eth/vm/forks/byzantium/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def create_header_from_parent(difficulty_fn: Callable[[BlockHeader, int], int],
header_params.setdefault('timestamp', parent_header.timestamp + 1)

header_params['difficulty'] = difficulty_fn(
parent_header=parent_header,
timestamp=header_params['timestamp'],
parent_header,
header_params['timestamp'],
)
return create_frontier_header_from_parent(parent_header, **header_params)

Expand Down

0 comments on commit df73159

Please sign in to comment.