From d260ec00e687e29643b8fd17cb1972b6cad4f16b Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Thu, 28 Aug 2025 12:15:36 -0400 Subject: [PATCH] fix(mypy): fix type hints for get_normalized_args --- eth_utils/abi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eth_utils/abi.py b/eth_utils/abi.py index 230b0398..ce6a6c4c 100644 --- a/eth_utils/abi.py +++ b/eth_utils/abi.py @@ -439,8 +439,8 @@ def get_all_event_abis(contract_abi: ABI) -> Sequence[ABIEvent]: def get_normalized_abi_inputs( abi_element: ABIElement, - *args: Optional[Sequence[Any]], - **kwargs: Optional[Dict[str, Any]], + *args: Any, + **kwargs: Any, ) -> Tuple[Any, ...]: r""" Flattens positional args (``args``) and keyword args (``kwargs``) into a Tuple and @@ -505,7 +505,7 @@ def get_normalized_abi_inputs( # If no keyword args were given, we don't need to align them if not kwargs: - return cast(Tuple[Any, ...], args) + return args kwarg_names = set(kwargs.keys()) sorted_arg_names = tuple(arg_abi["name"] for arg_abi in function_inputs)