From 5674e9ca4b5334afa002d41637fd7528a4ff469c Mon Sep 17 00:00:00 2001 From: ken-morel Date: Fri, 26 Jul 2024 02:37:58 +0100 Subject: [PATCH 1/2] corrected minor mistake --- src/comberload.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/comberload.py b/src/comberload.py index 65afdc5..54edafd 100644 --- a/src/comberload.py +++ b/src/comberload.py @@ -73,9 +73,10 @@ def call(self, *args, **kw): The default call for comberloaded instance, calla the fallback if given, else returns None """ - if self._fallback is None: + handle = (self._fallback or self._fallback) + if handle is None: return None - return self._fallback(*args, **kw) + return handle(*args, **kw) def fallback(self, func: Callable): """ From 1fac70b3969fff57d53bc2b4793e8a6f011d56b3 Mon Sep 17 00:00:00 2001 From: ken-morel Date: Fri, 26 Jul 2024 02:38:23 +0100 Subject: [PATCH 2/2] corrected minor mistake --- src/comberload.py | 2 +- src/tests/test_comberload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comberload.py b/src/comberload.py index 54edafd..eb0cd4f 100644 --- a/src/comberload.py +++ b/src/comberload.py @@ -32,7 +32,7 @@ def fallback_get_input(): """ - __version__ = "1.1.0" + __version__ = "1.1.1" worker_running = False should_work = True backlog = [] diff --git a/src/tests/test_comberload.py b/src/tests/test_comberload.py index dd6c0ef..ef57af9 100644 --- a/src/tests/test_comberload.py +++ b/src/tests/test_comberload.py @@ -1,7 +1,7 @@ def test_comberload(): import comberload - assert comberload.__version__ == "1.1.0" + assert comberload.__version__ == "1.1.1" @comberload("sys") def foo():