fix some typos

This commit is contained in:
Matthias 2020-10-04 09:12:52 +02:00
parent 176006da29
commit 63e1cba597
3 changed files with 7 additions and 7 deletions

View File

@ -77,7 +77,7 @@ class IResolver:
return valid_objects_gen
@classmethod
def _search_object(cls, directory: Path, object_name: str, add_source: bool = False
def _search_object(cls, directory: Path, *, object_name: str, add_source: bool = False
) -> Union[Tuple[Any, Path], Tuple[None, None]]:
"""
Search for the objectname in the given directory
@ -103,7 +103,7 @@ class IResolver:
return (None, None)
@classmethod
def _load_object(cls, paths: List[Path], object_name: str, add_source: bool = False,
def _load_object(cls, paths: List[Path], *, object_name: str, add_source: bool = False,
kwargs: dict = {}) -> Optional[Any]:
"""
Try to load object from path list.
@ -125,7 +125,7 @@ class IResolver:
return None
@classmethod
def load_object(cls, object_name: str, config: dict, kwargs: dict,
def load_object(cls, object_name: str, config: dict, *, kwargs: dict,
extra_dir: Optional[str] = None) -> Any:
"""
Search and loads the specified object as configured in hte child class.

View File

@ -172,7 +172,7 @@ class ApiServer(RPC):
def register_rest_rpc_urls(self):
"""
Registers flask app URLs that are calls to functonality in rpc.rpc.
Registers flask app URLs that are calls to functionality in rpc.rpc.
First two arguments passed are /URL and 'Label'
Label can be used as a shortcut when refactoring
@ -314,7 +314,7 @@ class ApiServer(RPC):
@rpc_catch_errors
def _ping(self):
"""
simple poing version
simple ping version
"""
return self.rest_dump({"status": "pong"})
@ -537,7 +537,7 @@ class ApiServer(RPC):
if not pair or not timeframe:
return self.rest_error("Mandatory parameter missing.", 400)
results = self._analysed_dataframe(pair, timeframe, limit)
results = self._rpc_analysed_dataframe(pair, timeframe, limit)
return self.rest_dump(results)
@require_login

View File

@ -701,7 +701,7 @@ class RPC:
})
return res
def _analysed_dataframe(self, pair: str, timeframe: str, limit: int) -> Dict[str, Any]:
def _rpc_analysed_dataframe(self, pair: str, timeframe: str, limit: int) -> Dict[str, Any]:
_data, last_analyzed = self._freqtrade.dataprovider.get_analyzed_dataframe(
pair, timeframe)