You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.14 deprecates asyncio.iscoroutinefunction in favor of inspect.iscoroutinefunction and aiohttp at some places uses the deprecated name so it should be changed to newer inspect.iscoroutinefunction.
To Reproduce
Run aiohttp tests on 3.14 to see the warnings.
Expected behavior
No warnings reported
Logs/tracebacks
NA
Python Version
$ python --versionPython 3.14.0a5+
aiohttp Version
$ python -m pip show aiohttp
multidict Version
$ python -m pip show multidict
propcache Version
$ python -m pip show propcache
yarl Version
$ python -m pip show yarl
OS
Linux
Related component
Client
Additional context
No response
Code of Conduct
I agree to follow the aio-libs Code of Conduct
The text was updated successfully, but these errors were encountered:
I looked at the linked aio-libs/async-lru#637, the fix for that is to call inspect.markcoroutinefunction on the object as that is now the official and supported way to mark such async functions, previously it required a private marker _is_coroutine.
Describe the bug
Python 3.14 deprecates
asyncio.iscoroutinefunction
in favor ofinspect.iscoroutinefunction
and aiohttp at some places uses the deprecated name so it should be changed to newerinspect.iscoroutinefunction
.To Reproduce
Run aiohttp tests on 3.14 to see the warnings.
Expected behavior
No warnings reported
Logs/tracebacks
Python Version
aiohttp Version
$ python -m pip show aiohttp
multidict Version
$ python -m pip show multidict
propcache Version
$ python -m pip show propcache
yarl Version
$ python -m pip show yarl
OS
Linux
Related component
Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: