Refactor the comparison involving not

Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
shubhendra 2021-03-21 17:14:35 +05:30 committed by Shubhendra
parent 4d81834912
commit f47dc31786
5 changed files with 4 additions and 21 deletions

View File

@ -1,16 +0,0 @@
version = 1
test_patterns = ["tests/**/test_*.py"]
exclude_patterns = [
"docs/**",
"user_data/**",
"build/helpers/**"
]
[[analyzers]]
name = "python"
enabled = true
[analyzers.meta]
runtime_version = "3.x.x"

View File

@ -806,7 +806,7 @@ class Exchange:
# Gather coroutines to run # Gather coroutines to run
for pair, timeframe in set(pair_list): for pair, timeframe in set(pair_list):
if (not ((pair, timeframe) in self._klines) if (((pair, timeframe) not in self._klines)
or self._now_is_time_to_refresh(pair, timeframe)): or self._now_is_time_to_refresh(pair, timeframe)):
input_coroutines.append(self._async_get_candle_history(pair, timeframe, input_coroutines.append(self._async_get_candle_history(pair, timeframe,
since_ms=since_ms)) since_ms=since_ms))

View File

@ -2,7 +2,7 @@
Performance pair list filter Performance pair list filter
""" """
import logging import logging
from typing import Any, Dict, List from typing import Dict, List
import pandas as pd import pandas as pd

View File

@ -1,7 +1,6 @@
import logging import logging
from datetime import datetime, timedelta from datetime import datetime, timedelta
from typing import Any, Dict
from freqtrade.persistence import Trade from freqtrade.persistence import Trade
from freqtrade.plugins.protections import IProtection, ProtectionReturn from freqtrade.plugins.protections import IProtection, ProtectionReturn