Skip to content
Snippets Groups Projects
Commit 9c10c22b authored by Kien Le's avatar Kien Le
Browse files

Fix bad type hints

parent ca3967ef
No related branches found
No related tags found
1 merge request!31Add type hint to controller code
......@@ -98,7 +98,7 @@ def formatTime(time: Union[UTCDateTime, float], dateMode: str,
return ret
def getTitle(key: Union[str, Tuple[str, str]], minTime: float, maxTime: float,
def getTitle(key: Union[str, Tuple[str, int]], minTime: float, maxTime: float,
dateMode: str) -> str:
"""
Create title for the plot.
......
......@@ -21,8 +21,8 @@ from sohstationviewer.controller.util import validateFile, displayTrackingInfo
def loadData(dataType: str, tracking_box: QTextBrowser, listOfDir: List[str],
reqWFChans: List[str] = [], reqSOHChans: List[str] = [],
readStart: int = None, readEnd: int = None,
) -> DataTypeModel:
readStart: Optional[float] = None,
readEnd: Optional[float] = None) -> DataTypeModel:
"""
Go through root dir and read all files in that dir and its subdirs
:param dataType: str - type of data read
......
......@@ -205,7 +205,7 @@ def rtnPattern(text: str, upper: bool = False) -> str:
return rtn
def add_thousand_separator_to_int(Value: str) -> str:
def add_thousand_separator_to_int(Value: float) -> str:
"""
This function is from logpeek's fmti
Given Value will be convert to a string integer with thousand separators
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment