Skip to content

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

Add type ignore

Damian Wysockib912ae1899b1
diff --git a/saleor/plugins/checks.py b/saleor/plugins/checks.py
index e641b1f3fb..2cd26546b1 100644
--- a/saleor/plugins/checks.py
+++ b/saleor/plugins/checks.py
@@ -53,9 +53,5 @@ def check_plugin_fields(
):
for field in fields:
if not getattr(plugin_class, field, None):
- errors.append(
- Error(
- f"Missing field {field} for "
- f"plugin - {plugin_class.__name__}" # type: ignore
- )
- )
+ name = plugin_class.__name__ # type: ignore
+ errors.append(Error(f"Missing field {field} for plugin - {name}"))