Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove invalid cast
Rafał Pitońb862bfb67159
diff --git a/saleor/graphql/attribute/types.py b/saleor/graphql/attribute/types.pyindex e332f89c8a..a17b337e82 100644--- a/saleor/graphql/attribute/types.py+++ b/saleor/graphql/attribute/types.py@@ -1,8 +1,6 @@import re-from typing import castimport graphene-from django.db.models import Managerfrom ...attribute import AttributeInputType, AttributeType, modelsfrom ...core.exceptions import PermissionDenied@@ -190,9 +188,7 @@ class Attribute(CountableDjangoObjectType):if root.input_type in AttributeInputType.TYPES_WITH_CHOICES:qs = root.values.all()else:- qs = cast(- Manager[models.AttributeValue], models.AttributeValue.objects.none()- )+ qs = models.AttributeValue.objects.none()qs = filter_connection_queryset(qs, kwargs)return create_connection_slice(