Skip to content

Commit ed3c550

Browse files
committed
Update array.py
1 parent fa1c9b5 commit ed3c550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

philh_myftp_biz/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class List[V]:
1010
"""
1111

1212
def __init__(self,
13-
a: Iterator[V] = []
13+
a: Iterator[V] | list[V] | tuple[V] = []
1414
):
1515
from .file import PKL, temp
1616
from .classOBJ import path
@@ -21,7 +21,7 @@ def __init__(self,
2121
elif hasattr(a, 'read') and hasattr(a, 'save'):
2222
self.var = a
2323

24-
elif isinstance(a, Iterator):
24+
elif isinstance(a, (Iterator, list, tuple)):
2525
self.var = PKL(
2626
temp('array', 'pkl'),
2727
default = list(a)

0 commit comments

Comments
 (0)