Skip to content

Commit

Permalink
Fix GasPriceStrategy type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
e3243eric committed Feb 24, 2023
1 parent 0cdb3a5 commit 6c1a4c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web3/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ class LogReceipt(TypedDict):
CallOverride = Dict[ChecksumAddress, CallOverrideParams]


GasPriceStrategy = Callable[["Web3", TxParams], Wei]
GasPriceStrategy = Union[
Callable[["Web3", TxParams], Wei], Callable[["AsyncWeb3", TxParams], Wei]
]


# syntax b/c "from" keyword not allowed w/ class construction
Expand Down

0 comments on commit 6c1a4c0

Please sign in to comment.