Skip to content
Snippets Groups Projects
Verified Commit 44ca404d authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Type hints.

parent 0cccde4a
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!176misc. small changes
Pipeline #52566 passed
......@@ -38,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ###
* [93](https://gitlab.com/linkahead/linkahead-crawler/-/issues/93) cfood.yaml does not allow umlaut in $expression
* [96](https://gitlab.com/linkahead/linkahead-crawler/-/issues/96) Do not fail silently on transaction errors
### Security ###
......
......@@ -68,7 +68,7 @@ def replace(in_value: Any, in_parameters: dict):
return in_value.replace(in_parameters['remove'], in_parameters['insert'])
def date_parse(in_value: str, params: dict):
def date_parse(in_value: str, params: dict) -> str:
"""Transform text so that it is formatted in a way that LinkAhead can understand it.
Parameters
......@@ -84,7 +84,7 @@ Parameters
return dt_str
def datetime_parse(in_value: str, params: dict):
def datetime_parse(in_value: str, params: dict) -> str:
"""Transform text so that it is formatted in a way that LinkAhead can understand it.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment