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:
parent
a50a3b7167
commit
5d3d2ca34b
|
@ -1,9 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""Custom types."""
|
"""Custom types."""
|
||||||
|
|
||||||
from typing import Dict
|
from typing import Dict, TypedDict
|
||||||
|
|
||||||
from typing_extensions import TypedDict
|
|
||||||
|
|
||||||
|
|
||||||
class ConstTxtStyleClass(TypedDict):
|
class ConstTxtStyleClass(TypedDict):
|
||||||
|
|
Loading…
Reference in New Issue