gh-122858: Deprecate `asyncio.iscoroutinefunction` by Wulian233 · Pull Request #122875 · python/cpython · GitHub

github.com

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Deprecate asyncio.iscoroutinefunction #122858

Deprecate :func:asyncio.iscoroutinefunction in favor of :func:`insp…

View reviewed changes

Apply suggestions from code review

View reviewed changes

use coroutines.iscoroutine and coroutines._iscoroutinefunction

View reviewed changes

Update Misc/NEWS.d/next/Library/2024-08-10-10-21-44.gh-issue-122858.Z…

View reviewed changes

from inspect import iscoroutinefunction

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

View reviewed changes

Reflect deprecation for asyncio.iscoroutinefunction python/typeshed#12558

gh-122858: Deprecate `asyncio.iscoroutinefunction` (#122875) Deprecate `asyncio.iscoroutinefunction` in favor of `inspect.iscoroutinefunction`. Co-authored-by: Kumar Aditya <[email protected]>

Use iscoroutinefunction from inspect not asyncio

Use iscoroutinefunction from inspect not asyncio pydanny/cached-property#359

Replace asyncio.iscoroutinefunction with inspect.iscoroutinefunction

Replace deprecated asyncio.iscoroutinefunction with its counterpart from inspect aio-libs/aiohttp#10634

Replace deprecated asyncio.iscoroutinefunction with its counterpart… aio-libs/aiohttp#10663

Replace deprecated asyncio.iscoroutinefunction with its counterpart… aio-libs/aiohttp#10664

asyncio.iscoroutinefunction() deprecation warnings in Python 3.14 tox-dev/filelock#431

fix: Use inspect.iscoroutinefunction instead of asyncio.iscoroutinefunction to address deprecation warning in Python 3.14+ litestar-org/litestar#4405

Fix python 3.14 deprecation warning

Python 3.14 support open-telemetry/opentelemetry-python#4789

Replace deprecated asyncio.iscoroutinefunction with inspect.iscoroutinefunction smithy-lang/smithy-python#608

refactor(twisted/consumer): update asyncio.iscoroutinefunction to inspect.iscoroutine fedora-infra/fedora-messaging#558

Add asyncio 3.14 deprecations python/typeshed#15176

Python3.14 - DeprecationWarning: 'asyncio.iscoroutinefunction' MagicStack/uvloop#731

Fix DeprecationWarning: asyncio.iscoroutinefunction on Python 3.14 canbula/ParallelProgramming#1075

Remove deprecated asyncio.iscoroutinefunction for 3.16 #149600