Skip to content

Commit

Permalink
Fix typing.Self
Browse files Browse the repository at this point in the history
  • Loading branch information
nycholas committed Jan 20, 2024
1 parent afd201b commit cec8675
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/flask_jsonrpc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cec8675

Please sign in to comment.