Skip to content

Commit a203698

Browse files
committed
Don't prefix dunder xrefs with object in contextlib docs
1 parent 201d251 commit a203698

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/contextlib.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Functions and classes provided:
2121
.. class:: AbstractContextManager
2222

2323
An :term:`abstract base class` for classes that implement
24-
:meth:`object.__enter__` and :meth:`object.__exit__`. A default
25-
implementation for :meth:`object.__enter__` is provided which returns
26-
``self`` while :meth:`object.__exit__` is an abstract method which by default
24+
:meth:`~object.__enter__` and :meth:`~object.__exit__`. A default
25+
implementation for :meth:`~object.__enter__` is provided which returns
26+
``self`` while :meth:`~object.__exit__` is an abstract method which by default
2727
returns ``None``. See also the definition of :ref:`typecontextmanager`.
2828

2929
.. versionadded:: 3.6
@@ -32,9 +32,9 @@ Functions and classes provided:
3232
.. class:: AbstractAsyncContextManager
3333

3434
An :term:`abstract base class` for classes that implement
35-
:meth:`object.__aenter__` and :meth:`object.__aexit__`. A default
36-
implementation for :meth:`object.__aenter__` is provided which returns
37-
``self`` while :meth:`object.__aexit__` is an abstract method which by default
35+
:meth:`~object.__aenter__` and :meth:`~object.__aexit__`. A default
36+
implementation for :meth:`~object.__aenter__` is provided which returns
37+
``self`` while :meth:`~object.__aexit__` is an abstract method which by default
3838
returns ``None``. See also the definition of
3939
:ref:`async-context-managers`.
4040

0 commit comments

Comments
 (0)