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.2Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
0020f4b976
commit
7d8994bcfe
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue