Repository: mopeyjellyfish/rhubarb (language: python)

Issue:
Remove async-timeout for 3.11 support
## 🚀 Feature Request

Update/Remove `async-timeout` to support Python 3.11

## 🔈 Motivation

Update or Remove `async-timeout` so that the library runs under python 3.11

## 🛰 Alternatives

N/A

## 📎 Additional context

`async-timeout` causes a module not found error when running with python 3.11



Discussion / hints:
Hello @mopeyjellyfish, thank you for your interest in our work!

If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you.

Fix patch:
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cfbdaaa7..82857e3f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,7 +7,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: ["3.9", "3.10"]
+        python-version: ["3.9", "3.10", "3.11"]
 
     services:
       zookeeper:


Test patch:
diff --git a/tests/test_rhubarb.py b/tests/test_rhubarb.py
index 51763fd4..8b824606 100644
--- a/tests/test_rhubarb.py
+++ b/tests/test_rhubarb.py
@@ -7,7 +7,12 @@
 import pytest
 import pytest_asyncio
 from anyio import Event
-from async_timeout import timeout
+
+try:
+    from async_timeout import timeout
+except ModuleNotFoundError:
+    from asyncio import timeout
+
 from hypothesis import HealthCheck, given, settings
 from hypothesis import strategies as st
 from pytest import mark, raises
@@ -272,7 +277,7 @@ async def event_bus_run(child_event_bus):
             p.join()
 
     async def test_group_subscribe(self, URL):
-        expected_messages = list(str(i) for i in range(10))
+        expected_messages = [str(i) for i in range(10)]
 
         async def read_subscriptions(subscriber):
             tasks = []