lib.CopyContext._run(): Fix infinite recursion

The CopyContext._run() calls await self._run(), which would create infinite recursion raising RecursionError at runtime. Make it a pure virtual.

Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL with pi.dev v0.80.2
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-07-01 16:03:02 +02:00
commit 7d8994bcfe
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -66,7 +66,7 @@ class CopyContext:
return self.__dst return self.__dst
async def _run(self) -> None: async def _run(self) -> None:
await self._run() raise NotImplementedError('CopyContext._run() must be overridden')
async def run(self) -> None: async def run(self) -> None:
await self._run() await self._run()