Merge pull request #8225 from freqtrade/ruff2

Ruff - add PTH rule and subsequent changes
This commit is contained in:
Matthias
2023-03-01 20:27:06 +01:00
committed by GitHub
13 changed files with 37 additions and 36 deletions

View File

@@ -195,7 +195,7 @@ class Binance(Exchange):
leverage_tiers_path = (
Path(__file__).parent / 'binance_leverage_tiers.json'
)
with open(leverage_tiers_path) as json_file:
with leverage_tiers_path.open() as json_file:
return json_load(json_file)
else:
try: