schon/payments/gateways/__init__.py
Egor fureunoir Gorbunov 5b06f83cfc Features: 1) None;
Fixes: 1) Remove unused import of `AbstractGateway` from `payments/signals.py`; 2) Adjust type hints in `AbstractGateway` methods to use `Any` instead of `Transaction`;

Extra: 1) Replace unused import of `Transaction` in `payments/gateways/__init__.py` with `Any`.
2025-10-21 12:36:53 +03:00

15 lines
309 B
Python

from typing import Any
class UnknownGatewayError(Exception):
pass
class AbstractGateway:
@staticmethod
def process_transaction(transaction: Any) -> None:
raise NotImplementedError
@staticmethod
def process_callback(transaction: Any) -> None:
raise NotImplementedError