Skip to content

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

Add missing files

Mira Szewczyk5c59e1bc123f
diff --git a/saleor/dashboard/stock/__init__.py b/saleor/dashboard/stock/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/saleor/graphql/stock/__init__.py b/saleor/graphql/stock/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/saleor/graphql/warehouse/__init__.py b/saleor/graphql/warehouse/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/saleor/stock/availability.py b/saleor/stock/availability.py
index 6a617e85d1..9fcd3eade4 100644
--- a/saleor/stock/availability.py
+++ b/saleor/stock/availability.py
@@ -4,11 +4,10 @@ from django.conf import settings
from django.db.models import Sum
from ..core.exceptions import InsufficientStock
-from ..product.models import Product
from .models import Stock
if TYPE_CHECKING:
- from ...product.models import ProductVariant
+ from ...product.models import Product, ProductVariant
def check_stock_quantity(variant: "ProductVariant", country_code: str, quantity: int):