diff --git a/src/cpl_query/base/queryable_abc.py b/src/cpl_query/base/queryable_abc.py index e7d8f5ec..ca42e3f3 100644 --- a/src/cpl_query/base/queryable_abc.py +++ b/src/cpl_query/base/queryable_abc.py @@ -315,7 +315,7 @@ class QueryableABC(Sequence): return _func(min(self, key=_func)) - def order_by(self, _func: Callable = None) -> 'QueryableABC': + def order_by(self, _func: Callable = None) -> 'OrderedQueryableABC': r"""Sorts elements by function in ascending order Parameter @@ -325,7 +325,7 @@ class QueryableABC(Sequence): Returns ------- - :class: `cpl_query.base.queryable_abc.QueryableABC` + :class: `cpl_query.base.ordered_queryable_abc.OrderedQueryableABC` """ if _func is None: _func = _default_lambda @@ -333,7 +333,7 @@ class QueryableABC(Sequence): from cpl_query.base.ordered_queryable import OrderedQueryable return OrderedQueryable(self.type, sorted(self, key=_func), _func) - def order_by_descending(self, _func: Callable = None) -> 'QueryableABC': + def order_by_descending(self, _func: Callable = None) -> 'OrderedQueryableABC': r"""Sorts elements by function in descending order Parameter @@ -343,7 +343,7 @@ class QueryableABC(Sequence): Returns ------- - :class: `cpl_query.base.queryable_abc.QueryableABC` + :class: `cpl_query.base.ordered_queryable_abc.OrderedQueryableABC` """ if _func is None: _func = _default_lambda diff --git a/src/cpl_query/cpl-query.json b/src/cpl_query/cpl-query.json index 655b7172..b142b2bf 100644 --- a/src/cpl_query/cpl-query.json +++ b/src/cpl_query/cpl-query.json @@ -4,7 +4,7 @@ "Version": { "Major": "2022", "Minor": "12", - "Micro": "2.post1" + "Micro": "2.post2" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de",