From f238b3d1efa53b4d6fcec2657b6dadfcbd63c823 Mon Sep 17 00:00:00 2001 From: Eneko Illarramendi Date: Fri, 4 Sep 2020 21:24:30 +0200 Subject: [PATCH] fix: TypedDict import --- lnbits/core/services.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lnbits/core/services.py b/lnbits/core/services.py index e480977..c7e6252 100644 --- a/lnbits/core/services.py +++ b/lnbits/core/services.py @@ -1,4 +1,9 @@ -from typing import Optional, Tuple, Dict, TypedDict +from typing import Optional, Tuple, Dict + +try: + from typing import TypedDict # type: ignore +except ImportError: # pragma: nocover + from typing_extensions import TypedDict from lnbits import bolt11 from lnbits.helpers import urlsafe_short_hash