We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa1c9b5 commit ed3c550Copy full SHA for ed3c550
philh_myftp_biz/array.py
@@ -10,7 +10,7 @@ class List[V]:
10
"""
11
12
def __init__(self,
13
- a: Iterator[V] = []
+ a: Iterator[V] | list[V] | tuple[V] = []
14
):
15
from .file import PKL, temp
16
from .classOBJ import path
@@ -21,7 +21,7 @@ def __init__(self,
21
elif hasattr(a, 'read') and hasattr(a, 'save'):
22
self.var = a
23
24
- elif isinstance(a, Iterator):
+ elif isinstance(a, (Iterator, list, tuple)):
25
self.var = PKL(
26
temp('array', 'pkl'),
27
default = list(a)
0 commit comments