Skip to content

gh-128349: use .. data:: instead of .. class:: for pre-defined decimal Context objects #128379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 2, 2025
6 changes: 3 additions & 3 deletions Doc/library/decimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1033,10 +1033,10 @@ New contexts can also be created using the :class:`Context` constructor
described below. In addition, the module provides three pre-made contexts:


.. class:: BasicContext
.. data:: BasicContext

This is a standard context defined by the General Decimal Arithmetic
Specification. Precision is set to nine. Rounding is set to
This is a predefined context object defined by the General Decimal Arithmetic Specification.
Precision is set to nine. Rounding is set to
:const:`ROUND_HALF_UP`. All flags are cleared. All traps are enabled (treated
as exceptions) except :const:`Inexact`, :const:`Rounded`, and
:const:`Subnormal`.
Expand Down
Loading