From faa030df966a30eb8b0af2cdd5c1abe3233e8d8a Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 6 Mar 2023 19:03:01 +0100 Subject: [PATCH] Fixed typing --- src/cpl_query/base/queryable_abc.py | 8 ++++---- src/cpl_query/cpl-query.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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",