From 8b7288ffc3140bb05e0bf07fb29782caa08e295a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Wed, 17 Apr 2024 14:10:31 +0200 Subject: [PATCH] fix ruff testing --- payments/models.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/payments/models.py b/payments/models.py index ba07160bd..161a4ea72 100644 --- a/payments/models.py +++ b/payments/models.py @@ -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 @@ -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