From 248e067da7e2c443375f6a555c05a2b08d4fbbda Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 31 Jan 2021 16:25:23 +1000 Subject: [PATCH] add back basic rsbackend.py for compatibility --- pylib/anki/rsbackend.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pylib/anki/rsbackend.py diff --git a/pylib/anki/rsbackend.py b/pylib/anki/rsbackend.py new file mode 100644 index 000000000..ceadfbd22 --- /dev/null +++ b/pylib/anki/rsbackend.py @@ -0,0 +1,17 @@ +# Copyright: Ankitects Pty Ltd and contributors +# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html +# +# The backend code has moved into _backend; this file exists only to avoid breaking +# some add-ons. They should be updated to point to the correct location in the +# future. +# +# pylint: disable=unused-import + +from typing import TYPE_CHECKING + +from anki.lang import FormatTimeSpanContext +from anki.decks import DeckTreeNode +from anki.errors import NotFoundError, InvalidInput + +if TYPE_CHECKING: + from anki.lang import FormatTimeSpanContextValue, TRValue