From 5fe7f6f97a630087c2ed76b41ba5a64c94512cce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2024 16:04:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- RELEASE.md | 5 +++-- tests/test_dataloaders.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index bea1d7cdd5..3f698b28a8 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -5,8 +5,9 @@ Calling `.clean(key)` on default dataloader with non-existing `key` will not thr async def load_data(keys): return [str(key) for key in keys] + dataloader = DataLoader(load_fn=load_data) -dataloader.clean(42) # does not throw KeyError anymore +dataloader.clean(42) # does not throw KeyError anymore ``` -This is a patch release, so no breaking changes. \ No newline at end of file +This is a patch release, so no breaking changes. diff --git a/tests/test_dataloaders.py b/tests/test_dataloaders.py index 5e36790147..8a95e1c8be 100644 --- a/tests/test_dataloaders.py +++ b/tests/test_dataloaders.py @@ -301,7 +301,7 @@ async def idx(keys: List[int]) -> List[Tuple[int, int]]: loader = DataLoader(load_fn=idx, cache=False) - loader.clean(1) # no effect on non-cached values + loader.clean(1) # no effect on non-cached values assert await loader.load_many([1, 2, 3]) == [(1, 1), (2, 1), (3, 1)]