Skip to content

Commit 8128a14

Browse files
author
viv-eth
committed
[DeeployTest] Move to Numpy-style docs
1 parent 6b99a58 commit 8128a14

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

DeeployTest/testUtils/typeMapping.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,22 @@
3737

3838

3939
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.
40+
"""Parses a data type from its name.
41+
42+
Parameters
43+
----------
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.
4456
"""
4557
if name not in _ALL_DTYPES:
4658
raise ValueError(f"Unknown data type: {name}")

0 commit comments

Comments
 (0)