diff --git a/newsfragments/2913.bugfix.rst b/newsfragments/2913.bugfix.rst new file mode 100644 index 0000000000..f568804f57 --- /dev/null +++ b/newsfragments/2913.bugfix.rst @@ -0,0 +1 @@ +Use ``TraceFilterParams`` instead of ``FilterParams`` for ``trace_filter`` typing diff --git a/web3/tracing.py b/web3/tracing.py index c216ef841f..36bf712837 100644 --- a/web3/tracing.py +++ b/web3/tracing.py @@ -29,8 +29,8 @@ from web3.types import ( BlockIdentifier, BlockTrace, - FilterParams, FilterTrace, + TraceFilterParams, TraceMode, TxParams, _Hash32, @@ -73,7 +73,7 @@ def trace_replay_transaction_munger( mungers=[default_root_munger], ) - trace_filter: Method[Callable[[FilterParams], List[FilterTrace]]] = Method( + trace_filter: Method[Callable[[TraceFilterParams], List[FilterTrace]]] = Method( RPC.trace_filter, mungers=[default_root_munger], )