Skip to content

Commit 629bd7d

Browse files
authored
Add versionadded in docs for enum methods (#113)
Add the versionadded to is_integer and is_signed documentation. Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
1 parent 8e52e9d commit 629bd7d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/onnx_ir/_enums.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ def is_floating_point(self) -> bool:
170170
}
171171

172172
def is_integer(self) -> bool:
173-
"""Returns True if the data type is an integer."""
173+
"""Returns True if the data type is an integer.
174+
175+
.. versionadded:: 0.1.4
176+
"""
174177
return self in {
175178
DataType.UINT8,
176179
DataType.INT8,
@@ -185,7 +188,10 @@ def is_integer(self) -> bool:
185188
}
186189

187190
def is_signed(self) -> bool:
188-
"""Returns True if the data type is a signed type."""
191+
"""Returns True if the data type is a signed type.
192+
193+
.. versionadded:: 0.1.4
194+
"""
189195
return self in {
190196
DataType.FLOAT,
191197
DataType.INT8,

0 commit comments

Comments
 (0)