From a04f1d8bcbcf48889dae49219d2edadbeb2dfa01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 14 Nov 2025 18:31:03 -0800 Subject: [PATCH] replace async-timeout with asyncio.timeout --- setup.py | 6 +++--- toonapi/toon.py | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 90dfe1a..3817d54 100644 --- a/setup.py +++ b/setup.py @@ -34,17 +34,17 @@ def read(*parts): "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], description="Asynchronous Python client for the Quby ToonAPI.", include_package_data=True, install_requires=["aiohttp>=3.0.0", "backoff>=1.9.0", "yarl"], + python_requires=">=3.11", keywords=[ "toon", "quby", diff --git a/toonapi/toon.py b/toonapi/toon.py index 28c81f1..e9b8d80 100644 --- a/toonapi/toon.py +++ b/toonapi/toon.py @@ -7,7 +7,6 @@ from typing import Any, Awaitable, Callable import aiohttp -import async_timeout import backoff from yarl import URL @@ -109,7 +108,7 @@ async def _request( self._close_session = True try: - with async_timeout.timeout(self.request_timeout): + async with asyncio.timeout(self.request_timeout): response = await self._session.request( method, url,