diff --git a/.github/workflows/label-remove.yml b/.github/workflows/label-remove.yml new file mode 100644 index 00000000000..24e601d754a --- /dev/null +++ b/.github/workflows/label-remove.yml @@ -0,0 +1,22 @@ +name: Clear needs-info/pr-unfinished on activity +on: + pull_request: + types: [synchronize, review_requested] + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + +jobs: + clear-pr-unfinished: + runs-on: ubuntu-latest + permissions: + pull-requests: write + + steps: + - name: Remove label + uses: actions-ecosystem/action-remove-labels@v1 + with: + labels: | + needs-info + pr-unfinished diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 8a56a2b7b80..9c895b6efd2 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -14,4 +14,3 @@ jobs: with: days-before-stale: 30 any-of-labels: needs-info - labels-to-remove-when-unstale: needs-info diff --git a/CHANGES/12042.doc.rst b/CHANGES/12042.doc.rst new file mode 100644 index 00000000000..50c30f28cdf --- /dev/null +++ b/CHANGES/12042.doc.rst @@ -0,0 +1,2 @@ +Documented :exc:`asyncio.TimeoutError` for ``WebSocketResponse.receive()`` +and related methods -- by :user:`veeceey`. diff --git a/docs/web_reference.rst b/docs/web_reference.rst index b7ef0bc90a9..c9aae61b135 100644 --- a/docs/web_reference.rst +++ b/docs/web_reference.rst @@ -1275,6 +1275,8 @@ and :ref:`aiohttp-web-signals` handlers:: :raise RuntimeError: if connection is not started + :raise asyncio.TimeoutError: if timeout expires before receiving a message + .. method:: receive_str(*, timeout=None) :async: @@ -1293,6 +1295,8 @@ and :ref:`aiohttp-web-signals` handlers:: :raise aiohttp.WSMessageTypeError: if message is not :const:`~aiohttp.WSMsgType.TEXT`. + :raise asyncio.TimeoutError: if timeout expires before receiving a message + .. method:: receive_bytes(*, timeout=None) :async: @@ -1312,6 +1316,8 @@ and :ref:`aiohttp-web-signals` handlers:: :raise aiohttp.WSMessageTypeError: if message is not :const:`~aiohttp.WSMsgType.BINARY`. + :raise asyncio.TimeoutError: if timeout expires before receiving a message + .. method:: receive_json(*, loads=json.loads, timeout=None) :async: @@ -1335,6 +1341,7 @@ and :ref:`aiohttp-web-signals` handlers:: :raise TypeError: if message is :const:`~aiohttp.WSMsgType.BINARY`. :raise ValueError: if message is not valid JSON. + :raise asyncio.TimeoutError: if timeout expires before receiving a message .. seealso:: :ref:`WebSockets handling`