[Mod] make flake8 happy

This commit is contained in:
nanoric 2019-04-12 07:15:55 -04:00
parent 1074a26b77
commit f797152bd5
2 changed files with 21 additions and 21 deletions

View File

@ -39,17 +39,17 @@ class CsvLoaderEngine(BaseEngine):
""""""
super().__init__(main_engine, event_engine, APP_NAME)
self.file_path: str = ''
self.file_path: str = ""
self.symbol: str = ""
self.exchange: Exchange = Exchange.SSE
self.interval: Interval = Interval.MINUTE
self.datetime_head: str = ''
self.open_head: str = ''
self.close_head: str = ''
self.low_head: str = ''
self.high_head: str = ''
self.volume_head: str = ''
self.datetime_head: str = ""
self.open_head: str = ""
self.close_head: str = ""
self.low_head: str = ""
self.high_head: str = ""
self.volume_head: str = ""
def load_by_handle(
self,
@ -63,7 +63,7 @@ class CsvLoaderEngine(BaseEngine):
low_head: str,
high_head: str,
volume_head: str,
datetime_format: str
datetime_format: str,
):
"""
load by text mode file handle
@ -116,12 +116,12 @@ class CsvLoaderEngine(BaseEngine):
low_head: str,
high_head: str,
volume_head: str,
datetime_format: str
datetime_format: str,
):
"""
load by filename
"""
with open(file_path, 'rt') as f:
with open(file_path, "rt") as f:
return self.load_by_handle(
f,
symbol=symbol,