From 5d3d2ca34b9fa0050b951b66ed4b026157dda319 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler <4189642+patkan@users.noreply.github.com> Date: Sat, 28 Oct 2023 21:11:38 +0200 Subject: [PATCH] import TypedDict from typing, not from extensions (#589) TypedDict is in the supported python versions available in typing. Therefore an import from potentially uninstalled typing_extensions is not necessary. fixes #560 --- src/escpos/types/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/escpos/types/__init__.py b/src/escpos/types/__init__.py index 25ba4de..64c138c 100644 --- a/src/escpos/types/__init__.py +++ b/src/escpos/types/__init__.py @@ -1,9 +1,7 @@ # -*- coding: utf-8 -*- """Custom types.""" -from typing import Dict - -from typing_extensions import TypedDict +from typing import Dict, TypedDict class ConstTxtStyleClass(TypedDict):