From b388718b3a04cf0d4a2d38da9e55e09f66647342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20G=C3=A2rlon=C8=9Ba?= <70283087+garlontas@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:38:59 +0000 Subject: [PATCH 1/2] chore: update poetry-publish action to a specific commit version --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 5e612d5..97895f3 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -22,6 +22,6 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build and publish to pypi - uses: JRubics/poetry-publish@v2.1 + uses: JRubics/poetry-publish@4b3306307f536bbfcb559603629b3b4f6aef5ab8 with: pypi_token: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file From c71f4da88e3e631b6d14971693e62a70a0033519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20G=C3=A2rlon=C8=9Ba?= <70283087+garlontas@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:39:07 +0000 Subject: [PATCH 2/2] fix: update handler type hint to Optional for dropwhile and reduce functions --- pystreamapi/_itertools/tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pystreamapi/_itertools/tools.py b/pystreamapi/_itertools/tools.py index 547a8ba..4a1985c 100644 --- a/pystreamapi/_itertools/tools.py +++ b/pystreamapi/_itertools/tools.py @@ -1,10 +1,10 @@ # pylint: disable=protected-access -from typing import Iterable +from typing import Iterable, Optional from pystreamapi._streams.error.__error import ErrorHandler, _sentinel -def dropwhile(predicate, iterable, handler: ErrorHandler = None): +def dropwhile(predicate, iterable, handler: Optional[ErrorHandler] = None): """ Drop items from the iterable while predicate(item) is true. Afterward, return every element until the iterable is exhausted. @@ -24,7 +24,7 @@ def dropwhile(predicate, iterable, handler: ErrorHandler = None): _initial_missing = object() -def reduce(function, sequence, initial=_initial_missing, handler: ErrorHandler = None): +def reduce(function, sequence, initial=_initial_missing, handler: Optional[ErrorHandler] = None): """ Apply a function of two arguments cumulatively to the items of a sequence or iterable, from left to right, to reduce the iterable to a single