diff --git a/payments/gateways/__init__.py b/payments/gateways/__init__.py index f4926b44..bd777365 100644 --- a/payments/gateways/__init__.py +++ b/payments/gateways/__init__.py @@ -1,4 +1,4 @@ -from payments.models import Transaction +from typing import Any class UnknownGatewayError(Exception): @@ -7,9 +7,9 @@ class UnknownGatewayError(Exception): class AbstractGateway: @staticmethod - def process_transaction(transaction: Transaction) -> None: + def process_transaction(transaction: Any) -> None: raise NotImplementedError @staticmethod - def process_callback(transaction: Transaction) -> None: + def process_callback(transaction: Any) -> None: raise NotImplementedError diff --git a/payments/signals.py b/payments/signals.py index 43fc689d..32e3dd59 100644 --- a/payments/signals.py +++ b/payments/signals.py @@ -5,7 +5,6 @@ from typing import Any from django.db.models.signals import post_save from django.dispatch import receiver -from payments.gateways import AbstractGateway from payments.models import Balance, Transaction from payments.utils.emailing import balance_deposit_email from vibes_auth.models import User