Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 17, 2024
1 parent c1e2f00 commit 4f9df42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions payments/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ def autocomplete_with_subscription(self, payment):
Throws RedirectNeeded if there is problem with the payment
that needs to be solved by user.
"""
raise NotImplementedError()
raise NotImplementedError

def cancel_subscription(self, subscription):
"""
Cancel subscription
Used by providers, that use provider initiated cancellation workflow
"""
raise NotImplementedError()
raise NotImplementedError

def capture(self, payment, amount=None):
raise NotImplementedError
Expand Down
8 changes: 4 additions & 4 deletions payments/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import json
import enum
import json
from typing import Iterable
from uuid import uuid4

Expand Down Expand Up @@ -77,10 +77,10 @@ def set_recurrence(self, token: str, **kwargs):
self.subscribtion_data = kwargs

def get_period(self) -> int:
raise NotImplementedError()
raise NotImplementedError

def get_unit(self) -> TimeUnit:
raise NotImplementedError()
raise NotImplementedError

def cancel(self):
"""
Expand Down Expand Up @@ -249,7 +249,7 @@ def get_payment_url(self) -> str:
(payment_details() in documentation)
For now used only by PayU provider to redirect users back to CVV2 form
"""
raise NotImplementedError()
raise NotImplementedError

def get_subscription(self) -> BaseSubscription | None:
"""
Expand Down

0 comments on commit 4f9df42

Please sign in to comment.