LINT_MODE_BRANCH
What happened
The file reads the run mode and takes a different path for it. If that path changes what is traded, the backtest no longer describes what the strategy does live.
What to do
Keep the trading logic the same in every mode. A branch that only changes logging or drawing is harmless, and the warning can stay.
Example
text
strategy.py, line 40: This code depends on the run mode. If it changes trading, a backtest and a live run trade differently. [LINT_MODE_BRANCH]The wording of the message depends on your file, and the code does not. A warning does not stop the file from loading.