From 45a8e53fd034cb534de8a1d16c04f493add182ec Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 15 May 2024 18:43:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/tqdm_publisher/_subscriber.py | 2 +- tests/test_subscriber.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tqdm_publisher/_subscriber.py b/src/tqdm_publisher/_subscriber.py index 69f10a7..083b7b4 100644 --- a/src/tqdm_publisher/_subscriber.py +++ b/src/tqdm_publisher/_subscriber.py @@ -4,7 +4,7 @@ class TQDMProgressSubscriber(TQDMProgressPublisher): - def __init__(self, on_progress_update: callable, iterable: Optional[Iterable[Any]]=None, **tqdm_kwargs): + def __init__(self, on_progress_update: callable, iterable: Optional[Iterable[Any]] = None, **tqdm_kwargs): super().__init__(iterable=iterable, **tqdm_kwargs) def run_on_progress_update(format_dict: Dict[str, Any]): diff --git a/tests/test_subscriber.py b/tests/test_subscriber.py index e187ce9..a91e2a0 100644 --- a/tests/test_subscriber.py +++ b/tests/test_subscriber.py @@ -65,8 +65,8 @@ def test_callback(data): # Simulate updatse to trigger the callback for task in asyncio.as_completed(tasks): await task - subscriber.update(1) # Update by 1 iteration + subscriber.update(1) # Update by 1 iteration - assert n_callback_executions > 1 + assert n_callback_executions > 1 - subscriber.close() \ No newline at end of file + subscriber.close()