From d6f68ecb68dc37d78ee0a80968ccb0ab63b63772 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Mon, 25 Sep 2023 00:37:07 +0200 Subject: [PATCH] use typing types --- src/escpos/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/escpos/cli.py b/src/escpos/cli.py index 02d3c04..6d99b90 100644 --- a/src/escpos/cli.py +++ b/src/escpos/cli.py @@ -11,7 +11,7 @@ It requires you to have a configuration file. See documentation for details. import argparse import platform -from typing import Any +from typing import Any, Dict, List try: import argcomplete @@ -95,7 +95,7 @@ DEMO_FUNCTIONS = { # parser: A dict of args for command_parsers.add_parser # defaults: A dict of args for subparser.set_defaults # arguments: A list of dicts of args for subparser.add_argument -ESCPOS_COMMANDS: list[dict[str, Any]] = [ +ESCPOS_COMMANDS: List[Dict[str, Any]] = [ { "parser": { "name": "qr",