🏷 v0.5.1 - Async fix & Python 3.14 support
📋 Changes
-
Fix async response detection in
AioPricesby usinginspect.iscoroutinefunction()instead ofinspect.isawaitable().
This properly checks ifresp.jsonis a coroutine function rather than checking if the already-called result is awaitable. -
Bump
requestsdependency from 2.32.3 to 2.32.4 for latest security
and bug fixes.By @dependabot[bot] in #67
-
Add Python 3.14 to the CI test matrix, ensuring compatibility with the latest Python release.
📝 Summary
This patch release fixes a subtle bug in async HTTP client detection that could cause issues with certain HTTP libraries like aiohttp. The change from isawaitable to iscoroutinefunction ensures proper introspection of the response object's json method before calling it. The release also includes a dependency update for requests and extends CI coverage to Python 3.14.
Full Changelog: 0.5.0...0.5.1