From 89feb5507e9e50cefd9018e0de4d7ca23d8ae05d Mon Sep 17 00:00:00 2001 From: Ana Paula Krelling Date: Fri, 15 Nov 2024 09:16:39 -0500 Subject: [PATCH] fix: change args type in FunctionCall class (#140) --- src/astx/callables.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/astx/callables.py b/src/astx/callables.py index a3f0af2..afeb2ab 100644 --- a/src/astx/callables.py +++ b/src/astx/callables.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Any, Optional, cast +from typing import Any, Iterable, Optional, cast from public import public from typeguard import typechecked @@ -96,12 +96,12 @@ class FunctionCall(DataType): """AST class for function call.""" fn: Function - args: tuple[DataType, ...] + args: Iterable[DataType] def __init__( self, fn: Function, - args: tuple[DataType, ...], + args: Iterable[DataType], loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None, ) -> None: