mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +00:00
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
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user