Skip to content

Commit

Permalink
fix ruff testing
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Apr 17, 2024
1 parent 67496a8 commit 8b7288f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions payments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import json
import enum
from typing import Iterable
from typing import Optional
from typing import Union
from uuid import uuid4

from django.db import models
Expand Down Expand Up @@ -241,12 +239,13 @@ def get_process_url(self) -> str:

def get_payment_url(self) -> str:
"""
Get the url the view that handles the payment (payment_details() in documentation)
Get the url the view that handles the payment
(payment_details() in documentation)
For now used only by PayU provider to redirect users back to CVV2 form
"""
raise NotImplementedError()

def get_subscription(self) -> Optional[BaseSubscription]:
def get_subscription(self) -> BaseSubscription | None:
"""
Returns subscription object associated with this payment
or None if the payment is not recurring
Expand Down

0 comments on commit 8b7288f

Please sign in to comment.