Skip to content
Snippets Groups Projects
Unverified Commit 0e9927b6 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (GH-92155)



Signed-off-by: default avatarprwatson <prwatson@redhat.com>
(cherry picked from commit 958f21c5)

Co-authored-by: default avatarThaddeus1499 <104600742+Thaddeus1499@users.noreply.github.com>
parent 178d79ae
Branches
Tags
No related merge requests found
...@@ -181,7 +181,7 @@ Functions and classes provided: ...@@ -181,7 +181,7 @@ Functions and classes provided:
``page.close()`` will be called when the :keyword:`with` block is exited. ``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* Return an async context manager that calls the ``aclose()`` method of *thing*
upon completion of the block. This is basically equivalent to:: upon completion of the block. This is basically equivalent to::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment