Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove new type definition

Mira Szewczyk080f598cdec1
diff --git a/saleor/extensions/__init__.py b/saleor/extensions/__init__.py
index 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 List
from django.utils.translation import pgettext_lazy
from .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.py
index 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, Union
from saleor.extensions import ConfigurationTypeField
from 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: