Improved query

This commit is contained in:
2022-09-15 00:30:44 +02:00
parent 52069b7bb3
commit bb461f5fba
6 changed files with 59 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
from typing import Callable, Optional, Union
from typing import Callable, Optional, Union, Iterable as IterableType
from cpl_query._helper import is_number
from cpl_query.exceptions import ArgumentNoneException, ExceptionArgument, InvalidTypeException, IndexOutOfRangeException
@@ -12,7 +12,7 @@ def _default_lambda(x: object):
class Iterable(IterableABC):
def __init__(self, t: type = None, values: list = None):
def __init__(self, t: type = None, values: IterableType = None):
IterableABC.__init__(self, t, values)
def all(self, _func: Callable = None) -> bool: