From 7ef6d9607862075b77eb4da2b58c057e52ccdada Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Sun, 3 Sep 2023 23:27:09 +0200 Subject: [PATCH] mute mypy type issue --- src/escpos/capabilities.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/escpos/capabilities.py b/src/escpos/capabilities.py index 632b23d..3c9a779 100644 --- a/src/escpos/capabilities.py +++ b/src/escpos/capabilities.py @@ -146,7 +146,11 @@ def clean(s): return str(s) -class Profile(get_profile_class("default")): +# mute the mypy type issue with this dynamic base class function for now (: Any) +ProfileBaseClass: Any = get_profile_class("default") + + +class Profile(ProfileBaseClass): """Profile class for user usage. For users, who want to provide their own profile.