Skip to content

Commit 20bdcf2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 97ba417 commit 20bdcf2

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

payments/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ def autocomplete_with_subscription(self, payment):
155155
Throws RedirectNeeded if there is problem with the payment
156156
that needs to be solved by user.
157157
"""
158-
raise NotImplementedError()
158+
raise NotImplementedError
159159

160160
def cancel_subscription(self, subscription):
161161
"""
162162
Cancel subscription
163163
Used by providers, that use provider initiated cancellation workflow
164164
"""
165-
raise NotImplementedError()
165+
raise NotImplementedError
166166

167167
def capture(self, payment, amount=None):
168168
raise NotImplementedError

payments/models.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from __future__ import annotations
22

3-
import json
43
import enum
4+
import json
55
from typing import Iterable
66
from typing import Optional
7-
from typing import Union
87
from uuid import uuid4
98

109
from django.db import models
@@ -73,10 +72,10 @@ def set_recurrence(self, token: str, **kwargs):
7372
self.token = token
7473

7574
def get_period(self) -> int:
76-
raise NotImplementedError()
75+
raise NotImplementedError
7776

7877
def get_unit(self) -> TimeUnit:
79-
raise NotImplementedError()
78+
raise NotImplementedError
8079

8180
def cancel(self):
8281
"""
@@ -244,7 +243,7 @@ def get_payment_url(self) -> str:
244243
Get the url the view that handles the payment (payment_details() in documentation)
245244
For now used only by PayU provider to redirect users back to CVV2 form
246245
"""
247-
raise NotImplementedError()
246+
raise NotImplementedError
248247

249248
def get_subscription(self) -> Optional[BaseSubscription]:
250249
"""

0 commit comments

Comments
 (0)