Skip to content

Commit

Permalink
tasks: Python 3.7 does not have Protocol in typing, it's in typing_ex…
Browse files Browse the repository at this point in the history
…tensions
  • Loading branch information
Ivan Stanković committed Aug 30, 2021
1 parent 6dcea1d commit 2563140
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scenario_player/tasks/blockchain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from typing import Any, Dict, List, Protocol, cast
import sys
from typing import Any, Dict, List, cast

if sys.version_info >= (3, 8):
from typing import Protocol
else:
from typing_extensions import Protocol

import structlog
from eth_abi.codec import ABICodec
Expand Down

0 comments on commit 2563140

Please sign in to comment.