We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b99a58 commit 8128a14Copy full SHA for 8128a14
DeeployTest/testUtils/typeMapping.py
@@ -37,10 +37,22 @@
37
38
39
def parseDataType(name: str):
40
- """
41
- Parses a data type from its name.
42
- :param name: The name of the data type.
43
- :return: The corresponding data type class.
+ """Parses a data type from its name.
+
+ Parameters
+ ----------
44
+ name : str
45
+ The name of the data type.
46
47
+ Returns
48
+ -------
49
+ class
50
+ The corresponding data type class.
51
52
+ Raises
53
+ ------
54
+ ValueError
55
+ If the provided data type name is unknown.
56
"""
57
if name not in _ALL_DTYPES:
58
raise ValueError(f"Unknown data type: {name}")
0 commit comments