diff --git a/src/flask_jsonrpc/__init__.py b/src/flask_jsonrpc/__init__.py index 1caecd8d..bb3f0d9f 100644 --- a/src/flask_jsonrpc/__init__.py +++ b/src/flask_jsonrpc/__init__.py @@ -26,6 +26,13 @@ # POSSIBILITY OF SUCH DAMAGE. from __future__ import annotations +import typing as t + from .app import JSONRPC # noqa: F401 from .views import JSONRPCView # noqa: F401 from .blueprints import JSONRPCBlueprint # noqa: F401 + +if not hasattr(t, 'Self'): + from typing_extensions import Self + + t.Self = Self