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

Signed-off-by: prwatson <prwatson@redhat.com>
This commit is contained in:
Thaddeus1499 2022-05-02 12:20:30 -04:00 committed by GitHub
parent 84b986ba10
commit 958f21c5cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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::