Skip to content

Commit a990abf

Browse files
committed
Document rest docs
1 parent e167670 commit a990abf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/decimal.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ Decimal objects
571571
>>> Decimal(321).exp()
572572
Decimal('2.561702493119680037517373933E+139')
573573

574-
.. classmethod:: from_float(f)
574+
.. classmethod:: from_float(f, /)
575575

576576
Alternative constructor that only accepts instances of :class:`float` or
577577
:class:`int`.
@@ -598,7 +598,7 @@ Decimal objects
598598

599599
.. versionadded:: 3.1
600600

601-
.. classmethod:: from_number(number)
601+
.. classmethod:: from_number(number, /)
602602

603603
Alternative constructor that only accepts instances of
604604
:class:`float`, :class:`int` or :class:`Decimal`, but not strings
@@ -989,7 +989,7 @@ Each thread has its own current context which is accessed or changed using the
989989
Return the current context for the active thread.
990990

991991

992-
.. function:: setcontext(c)
992+
.. function:: setcontext(c, /)
993993

994994
Set the current context for the active thread to *c*.
995995

0 commit comments

Comments
 (0)