Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove new type definition
Mira Szewczyk080f598cdec1
diff --git a/saleor/extensions/__init__.py b/saleor/extensions/__init__.pyindex a85f314694..2ff4b876ae 100644--- a/saleor/extensions/__init__.py+++ b/saleor/extensions/__init__.py@@ -1,12 +1,10 @@import importlib-from typing import Dict, List, NewType, Union+from typing import Listfrom django.utils.translation import pgettext_lazyfrom .checks import check_extensions # NOQA: F401-ConfigurationType = NewType("ConfigurationType", Dict[str, Union[str, bool]])-def discover_plugins_modules(plugins: List[str]):plugins_modules = []diff --git a/tests/extensions/helpers.py b/tests/extensions/helpers.pyindex 563e005b69..7e8645f00e 100644--- a/tests/extensions/helpers.py+++ b/tests/extensions/helpers.py@@ -1,14 +1,11 @@-from typing import TYPE_CHECKING, Union+from typing import Dict, Unionfrom saleor.extensions import ConfigurationTypeFieldfrom saleor.extensions.base_plugin import BasePlugin-if TYPE_CHECKING:- from saleor.extensions import ConfigurationType-def get_config_value(- field_name: str, configuration: "ConfigurationType"+ field_name: str, configuration: Dict[str, Union[str, bool]]) -> Union[str, bool]:for elem in configuration:if elem["name"] == field_name: