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`.
15 lines
309 B
Python
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
|