Don't inherit from object

This commit is contained in:
hroff-1902 2019-09-12 04:39:52 +03:00
parent f987e6e0f9
commit 849d694c27
12 changed files with 13 additions and 13 deletions

View File

@ -44,7 +44,7 @@ ARGS_PLOT_PROFIT = ["pairs", "timerange", "export", "exportfilename", "db_url",
NO_CONF_REQURIED = ["download-data", "plot-dataframe", "plot-profit"]
class Arguments(object):
class Arguments:
"""
Arguments Class. Manage the arguments received by the cli
"""

View File

@ -22,7 +22,7 @@ from freqtrade.state import RunMode
logger = logging.getLogger(__name__)
class Configuration(object):
class Configuration:
"""
Class to read and init the bot configuration
Reuse this class for the bot, backtesting, hyperopt and every script that required configuration

View File

@ -72,7 +72,7 @@ def retrier(f):
return wrapper
class Exchange(object):
class Exchange:
_config: Dict = {}
_params: Dict = {}

View File

@ -29,7 +29,7 @@ from freqtrade.wallets import Wallets
logger = logging.getLogger(__name__)
class FreqtradeBot(object):
class FreqtradeBot:
"""
Freqtrade is the main class of the bot.
This is from here the bot start its logic.

View File

@ -44,7 +44,7 @@ class BacktestResult(NamedTuple):
sell_reason: SellType
class Backtesting(object):
class Backtesting:
"""
Backtesting class, this class contains all the logic to run a backtest

View File

@ -16,7 +16,7 @@ from freqtrade.resolvers import StrategyResolver
logger = logging.getLogger(__name__)
class EdgeCli(object):
class EdgeCli:
"""
EdgeCli class, this class contains all the logic to run edge backtesting

View File

@ -12,7 +12,7 @@ from typing import Any, List, Optional, Tuple, Type, Union
logger = logging.getLogger(__name__)
class IResolver(object):
class IResolver:
"""
This class contains all the logic to load custom classes
"""

View File

@ -15,7 +15,7 @@ from freqtrade.constants import SUPPORTED_FIAT
logger = logging.getLogger(__name__)
class CryptoFiat(object):
class CryptoFiat:
"""
Object to describe what is the price of Crypto-currency in a FIAT
"""
@ -60,7 +60,7 @@ class CryptoFiat(object):
return self._expiration - time.time() <= 0
class CryptoToFiatConverter(object):
class CryptoToFiatConverter:
"""
Main class to initiate Crypto to FIAT.
This object contains a list of pair Crypto, FIAT

View File

@ -54,7 +54,7 @@ class RPCException(Exception):
}
class RPC(object):
class RPC:
"""
RPC class can be used to have extra feature, like bot data, and access to DB data
"""

View File

@ -9,7 +9,7 @@ from freqtrade.rpc import RPC, RPCMessageType
logger = logging.getLogger(__name__)
class RPCManager(object):
class RPCManager:
"""
Class to manage RPC objects (Telegram, Slack, ...)
"""

View File

@ -17,7 +17,7 @@ class Wallet(NamedTuple):
total: float = 0
class Wallets(object):
class Wallets:
def __init__(self, config: dict, exchange: Exchange) -> None:
self._config = config

View File

@ -19,7 +19,7 @@ from freqtrade.rpc import RPCMessageType
logger = logging.getLogger(__name__)
class Worker(object):
class Worker:
"""
Freqtradebot worker class
"""