From d36aadf004358b0707405ecb74d978ab075e05ae Mon Sep 17 00:00:00 2001 From: Ryan Smith Date: Fri, 22 Nov 2024 12:58:39 -0500 Subject: [PATCH] Bug fix: Fix public API adding names which are currently missing --- src/collektions/__init__.py | 32 ++++++++++++++++++++++++++++++++ src/collektions/_iterable.py | 23 +++++++++++++++++++++-- src/collektions/_sequence.py | 3 +++ 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/src/collektions/__init__.py b/src/collektions/__init__.py index d91d297..96d08bc 100644 --- a/src/collektions/__init__.py +++ b/src/collektions/__init__.py @@ -13,15 +13,27 @@ "drop_last", "drop_last_while", "drop_while", + "filter_indexed", + "filter_isinstance", "filter_keys", + "filter_not", + "filter_not_none", "filter_values", + "find", + "find_last", "first", "first_or_none", "flat_map", "flatten", "fold", "fold_indexed", + "fold_right", + "fold_right_indexed", "group_by", + "group_by", + "group_by", + "group_by_to", + "group_by_to", "group_by_to", "is_empty", "is_not_empty", @@ -41,15 +53,24 @@ "none", "on_each", "on_each_indexed", + "partition", "reduce", "reduce_indexed", "reduce_indexed_or_none", "reduce_or_none", "running_fold", "running_fold_indexed", + "scan", + "scan_indexed", + "single", "single", + "single", + "single_or_none", + "single_or_none", "single_or_none", "sum_of", + "sum_of", + "sum_of", "take", "take_last", "take_last_while", @@ -71,6 +92,11 @@ distinct_by, drop, drop_while, + filter_indexed, + filter_isinstance, + filter_not, + filter_not_none, + find, first, first_or_none, flat_map, @@ -91,12 +117,15 @@ none, on_each, on_each_indexed, + partition, reduce, reduce_indexed, reduce_indexed_or_none, reduce_or_none, running_fold, running_fold_indexed, + scan, + scan_indexed, single, single_or_none, sum_of, @@ -116,6 +145,9 @@ from ._sequence import ( drop_last, drop_last_while, + find_last, + fold_right, + fold_right_indexed, last, last_or_none, take_last, diff --git a/src/collektions/_iterable.py b/src/collektions/_iterable.py index a556b5f..d4e2d34 100644 --- a/src/collektions/_iterable.py +++ b/src/collektions/_iterable.py @@ -4,9 +4,9 @@ __all__ = [ "associate", + "associate_to", "associate_by", "associate_by_to", - "associate_to", "associate_with", "associate_with_to", "average", @@ -15,19 +15,28 @@ "distinct_by", "drop", "drop_while", + "filter_indexed", + "filter_isinstance", + "filter_not", + "filter_not_none", "first", "first_or_none", + "find", "flat_map", "flatten", "fold", "fold_indexed", "group_by", + "group_by", + "group_by", + "group_by_to", + "group_by_to", "group_by_to", "is_empty", "is_not_empty", "map_indexed", - "map_indexed_not_none", "map_not_none", + "map_indexed_not_none", "max_by", "max_of", "min_by", @@ -35,21 +44,31 @@ "none", "on_each", "on_each_indexed", + "partition", "reduce", "reduce_indexed", "reduce_indexed_or_none", "reduce_or_none", "running_fold", "running_fold_indexed", + "scan", + "scan_indexed", "single", + "single", + "single", + "single_or_none", + "single_or_none", "single_or_none", "sum_of", + "sum_of", + "sum_of", "take", "take_while", "unzip", "windowed", ] + from collections.abc import ( Collection, Generator, diff --git a/src/collektions/_sequence.py b/src/collektions/_sequence.py index 5c5eaa8..56cf68a 100644 --- a/src/collektions/_sequence.py +++ b/src/collektions/_sequence.py @@ -3,6 +3,9 @@ __all__ = [ "drop_last", "drop_last_while", + "find_last", + "fold_right", + "fold_right_indexed", "last", "last_or_none", "take_last",