#161 #162

Merged
edraft merged 6 commits from #161 into 2023.4 2023-04-04 14:52:31 +02:00
2 changed files with 12 additions and 10 deletions
Showing only changes of commit 01309e3124 - Show all commits

View File

@ -11,16 +11,20 @@ CPL Python integrated Queries
""" """
__title__ = 'cpl_query.base' __title__ = "cpl_query.base"
__author__ = 'Sven Heidemann' __author__ = "Sven Heidemann"
__license__ = 'MIT' __license__ = "MIT"
__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' __copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de"
__version__ = '2023.4.0' __version__ = "2023.4.0"
from collections import namedtuple from collections import namedtuple
# imports: # imports:
from .default_lambda import default_lambda
from .ordered_queryable import OrderedQueryable
from .ordered_queryable_abc import OrderedQueryableABC
from .queryable_abc import QueryableABC
from .sequence import Sequence
VersionInfo = namedtuple('VersionInfo', 'major minor micro') VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major='2023', minor='4', micro='0') version_info = VersionInfo(major="2023", minor="4", micro="0")

View File

@ -251,8 +251,6 @@ class IterableQueryTestCase(unittest.TestCase):
self.assertEqual(res, s_res) self.assertEqual(res, s_res)
def test_then_by_descending(self): def test_then_by_descending(self):
x = List(int, List.range(1, 10)).order_by(lambda x: x).th
res = ( res = (
self._tests.order_by_descending(lambda user: user.address.street) self._tests.order_by_descending(lambda user: user.address.street)
.then_by_descending(lambda user: user.address.nr) .then_by_descending(lambda user: user.address.nr)