Fixed type problems with ordered List

This commit is contained in:
2021-11-22 20:52:10 +01:00
parent 40876005d5
commit 5d0444bcc0
4 changed files with 9 additions and 9 deletions

View File

@@ -9,9 +9,9 @@ class OrderedIterable(Iterable, OrderedIterableABC):
r"""Implementation of :class: `cpl_query.extension.Iterable` `cpl_query.extension.OrderedIterableABC`
"""
def __init__(self):
Iterable.__init__(self)
OrderedIterableABC.__init__(self)
def __init__(self, _t: type = None):
Iterable.__init__(self, _t)
OrderedIterableABC.__init__(self, _t)
def then_by(self, _func: Callable) -> OrderedIterableABC:
self._funcs.append(_func)