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)]