Skip to content

Commit a64bb39

Browse files
committed
Add typing to SymbolCALL constructor
1 parent 37e2c64 commit a64bb39

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

symbols/call.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# the GNU General License
1010
# ----------------------------------------------------------------------
1111

12+
from typing import Iterable
13+
1214
import api.global_ as gl
1315
from api.check import check_call_arguments
1416
from api.constants import CLASS
@@ -33,7 +35,7 @@ class SymbolCALL(Symbol):
3335
lineno: source code line where this call was made
3436
"""
3537

36-
def __init__(self, entry: SymbolFUNCTION, arglist, lineno):
38+
def __init__(self, entry: SymbolFUNCTION, arglist: Iterable[SymbolARGUMENT], lineno: int):
3739
super(SymbolCALL, self).__init__()
3840
assert isinstance(lineno, int)
3941
assert all(isinstance(x, SymbolARGUMENT) for x in arglist)

0 commit comments

Comments
 (0)