Skip to content
Snippets Groups Projects
Commit 197bf0ab authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

DOC(transformers): added docstrings to cast_to_* functions

parent facdec19
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!203New transformer functions for casting types of variables
Pipeline #58313 passed
......@@ -102,16 +102,44 @@ Parameters
def cast_to_int(in_value: Any, params: dict) -> int:
"""
Cast the `in_value` to int.
Parameters
==========
No parameters.
"""
return int(in_value)
def cast_to_float(in_value: Any, params: dict) -> float:
"""
Cast the `in_value` to float.
Parameters
==========
No parameters.
"""
return float(in_value)
def cast_to_bool(in_value: Any, params: dict) -> bool:
"""
Cast the `in_value` to bool.
Parameters
==========
No parameters.
"""
return bool(in_value)
def cast_to_str(in_value: Any, params: dict) -> str:
"""
Cast the `in_value` to str.
Parameters
==========
No parameters.
"""
return str(in_value)
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