Fixed skip function

This commit is contained in:
2022-12-11 10:44:23 +01:00
parent 002ba6b4e0
commit cbae40ef4d
7 changed files with 12 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ __title__ = 'cpl_query.base'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de'
__version__ = '2022.12.1.post2'
__version__ = '2022.12.1.post3'
from collections import namedtuple
@@ -23,4 +23,4 @@ from collections import namedtuple
# imports:
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major='2022', minor='12', micro='1.post2')
version_info = VersionInfo(major='2022', minor='12', micro='1.post3')

View File

@@ -431,7 +431,7 @@ class QueryableABC(Sequence):
if _index is None:
raise ArgumentNoneException(ExceptionArgument.index)
return type(self)(self.type, values=self[_index:])
return type(self)(self.type, self[_index:])
def skip_last(self, _index: int) -> 'QueryableABC':
r"""Skips all elements after index