From c7b49123cb5dde43cfc977a1e667fb7dad4704b1 Mon Sep 17 00:00:00 2001 From: Thaddeus1499 <104600742+Thaddeus1499@users.noreply.github.com> Date: Mon, 2 May 2022 12:20:30 -0400 Subject: [PATCH] gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (GH-92155) Signed-off-by: prwatson (cherry picked from commit 958f21c5cdb3bbbd16fec87164785cff3dacce96) Co-authored-by: Thaddeus1499 <104600742+Thaddeus1499@users.noreply.github.com> --- Doc/library/contextlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 0fe3206540e80d..7c0b8314079683 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -181,7 +181,7 @@ Functions and classes provided: ``page.close()`` will be called when the :keyword:`with` block is exited. -.. class:: aclosing(thing) +.. function:: aclosing(thing) Return an async context manager that calls the ``aclose()`` method of *thing* upon completion of the block. This is basically equivalent to::