From cccaac7f75e569ada6dad1ec2207120eb238cf55 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Fri, 16 Feb 2024 14:57:49 -0500 Subject: [PATCH] fix: disable temp fix (#130) --- a_sync/task.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/a_sync/task.py b/a_sync/task.py index 825cabf2..b42c1af9 100644 --- a/a_sync/task.py +++ b/a_sync/task.py @@ -70,10 +70,10 @@ async def __aiter__(self) -> AsyncIterator[Tuple[K, V]]: async for key, value in as_completed(self, aiter=True): if key not in yielded: yield _yield(key, value, "both") - def keys(self) -> KeysView[K]: - if self._loader and not self._loader.done(): - raise exceptions.RuntimeError("the loader needs time to complete. bob will figure out a way to make this not impact sync users") - return super().keys() + #def keys(self) -> KeysView[K]: + # if self._loader and not self._loader.done(): + # raise RuntimeError("the loader needs time to complete. bob will figure out a way to make this not impact sync users") + # return super().keys() async def map(self, *iterables: AnyIterable[K], pop: bool = True, yields: Literal['keys', 'both'] = 'both') -> AsyncIterator[Tuple[K, V]]: if self: raise exceptions.MappingNotEmptyError