runmode has type freqtrade.enums.runmode.RunMode
but is used as type None
"filename": "freqtrade/configuration/configuration.py" "warning_type": "Incompatible variable type [9]", "warning_message": " runmode is declared to have type `freqtrade.enums.runmode.RunMode` but is used as type `None`.", "warning_line": 31 "fix: Add Optional type
This commit is contained in:
parent
a6d78a8615
commit
17e028cf68
@ -28,7 +28,7 @@ class Configuration:
|
||||
Reuse this class for the bot, backtesting, hyperopt and every script that required configuration
|
||||
"""
|
||||
|
||||
def __init__(self, args: Dict[str, Any], runmode: RunMode = None) -> None:
|
||||
def __init__(self, args: Dict[str, Any], runmode: Optional[RunMode] = None) -> None:
|
||||
self.args = args
|
||||
self.config: Optional[Dict[str, Any]] = None
|
||||
self.runmode = runmode
|
||||
|
Loading…
Reference in New Issue
Block a user