Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix mypy errors for graphql.core
IKarbowiak34bb68061bd5
diff --git a/saleor/graphql/core/utils/reordering.py b/saleor/graphql/core/utils/reordering.pyindex c5a4ef0bac..a5afd3dbc6 100644--- a/saleor/graphql/core/utils/reordering.py+++ b/saleor/graphql/core/utils/reordering.py@@ -1,6 +1,6 @@from collections import OrderedDictfrom dataclasses import dataclass-from typing import Dict, Tuple+from typing import Dict, List, Tuplefrom django.db import transactionfrom django.db.models import F, QuerySet@@ -29,11 +29,11 @@ class Reordering:# Will contain the original data, before sorting# This will be useful to look for the sort orders that# actually were changed- self.old_sort_map = {}+ self.old_sort_map: Dict[int, str] = {}# Will contain the list of keys kept# in correct order in accordance to their sort order- self.ordered_pks = []+ self.ordered_pks: List[int] = []@cached_propertydef ordered_node_map(self):