From 3b86e3e66e6301b5b179b680378b158b820a2a23 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 9 Jun 2024 08:44:04 +0200 Subject: [PATCH] Fix deprecated "abstractproperty" --- freqtrade/plugins/pairlist/IPairList.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/plugins/pairlist/IPairList.py b/freqtrade/plugins/pairlist/IPairList.py index 0db38ff2f..a2e70e649 100644 --- a/freqtrade/plugins/pairlist/IPairList.py +++ b/freqtrade/plugins/pairlist/IPairList.py @@ -3,7 +3,7 @@ PairList Handler base class """ import logging -from abc import ABC, abstractmethod, abstractproperty +from abc import ABC, abstractmethod from copy import deepcopy from typing import Any, Dict, List, Literal, Optional, TypedDict, Union @@ -87,7 +87,8 @@ class IPairList(LoggingMixin, ABC): """ return self.__class__.__name__ - @abstractproperty + @property + @abstractmethod def needstickers(self) -> bool: """ Boolean property defining if tickers are necessary.