From a52e149caebe304ae45f7387fa0c7a8dac3b45f1 Mon Sep 17 00:00:00 2001 From: Varun Chawla <34209028+veeceey@users.noreply.github.com> Date: Tue, 17 Feb 2026 10:12:25 -0800 Subject: [PATCH 1/2] docs: Document asyncio.TimeoutError for WebSocketResponse.receive methods (#12042) --- CHANGES/12042.doc.rst | 2 ++ docs/web_reference.rst | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 CHANGES/12042.doc.rst 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` From eaeba8690ba8598206a4b2359d8da323a1bc94e1 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Tue, 17 Feb 2026 20:10:43 +0000 Subject: [PATCH 2/2] Workflow to remove labels on activity (#12070) --- .github/workflows/label-remove.yml | 22 ++++++++++++++++++++++ .github/workflows/stale.yml | 1 - 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/label-remove.yml 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