Skip to content

Commit 580d8b1

Browse files
committed
Revert session.close() in docs back to coroutine
1 parent e0a5931 commit 580d8b1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

docs/client_reference.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,14 +474,12 @@ The client session supports the context manager protocol for self closing.
474474

475475
URLs may be either :class:`str` or :class:`~yarl.URL`
476476

477-
.. method:: close()
477+
.. comethod:: close()
478478

479479
Close underlying connector.
480480

481481
Release all acquired resources.
482482

483-
.. versionchanged:: 2.0
484-
485483
.. method:: detach()
486484

487485
Detach connector from session without closing the former.

docs/migration.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ Various
140140
does not match, it raises :exc:`aiohttp.ClientResponseError` exception.
141141
To disable content type check you can pass ``None`` as `content_type` parameter.
142142

143-
7. `ClientSession.close()` is a regular function returning None, not a coroutine.
144143

145144

146145

0 commit comments

Comments
 (0)