Skip to content

replace deprecated asyncio.iscoroutinefunction with inspect.iscoroutinefunction #10473

Closed
@kumaraditya303

Description

@kumaraditya303

Describe the bug

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 --version
Python 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions