Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b7786b

Browse files
author
Stefan Krah
committed
Use $type instead of $cls in the signature specification.
1 parent 6b794b8 commit 6b7786b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_decimal/docstrings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ is correctly rounded.\n\
164164
\n");
165165

166166
PyDoc_STRVAR(doc_from_float,
167-
"from_float($cls, f, /)\n--\n\n\
167+
"from_float($type, f, /)\n--\n\n\
168168
Class method that converts a float to a decimal number, exactly.\n\
169169
Since 0.1 is not exactly representable in binary floating point,\n\
170170
Decimal.from_float(0.1) is not the same as Decimal('0.1').\n\

0 commit comments

Comments
 (0)