Skip to content

Commit 9a49832

Browse files
committed
Fix issue where @prettify_docstrings treated int and float as functions, not classes.
1 parent 60b47d4 commit 9a49832

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

domdf_python_tools/doctools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ def wrapper(target: F) -> F:
286286
base_int_docstrings = {
287287
# "__bool__": "Return ``self != 0`.", # TODO
288288
# __ceil__
289-
"__float__": "Return :func:`float(self) <float>`.", # __floor__
290-
"__int__": "Return :func:`int(self) <int>`.", # __round__
289+
"__float__": "Return :class:`float(self) <float>`.", # __floor__
290+
"__int__": "Return :class:`int(self) <int>`.", # __round__
291291
}
292292

293293
new_return_types = {

0 commit comments

Comments
 (0)