Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Replace deprecated asyncio.iscoroutinefunction() call with inspect.iscoroutinefunction()#3545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
brandonschabell wants to merge1 commit intoplotly:dev
base:dev
Choose a base branch
Loading
frombrandonschabell:feature/coroutine-deprecation

Conversation

@brandonschabell
Copy link

Theasyncio.iscoutinefunction() function is deprecated and will be removed in python 3.16. This begins raising deprecation warnings in python 3.14. This PR cleans that all up.

Contributor Checklist

  • I have broken down my PR scope into the following TODO tasks
    • task 1
    • task 2
  • I have run the tests locally and they passed. (refer to testing section incontributing)
  • I have added tests, or extended existing tests, to cover any new features or bugs fixed in this PR

optionals

  • I have added entry in theCHANGELOG.md
  • If this PR needs a follow-up indash docs,community thread, I have mentioned the relevant URLS as follows
    • this GitHub#PR number updates the dash docs
    • here is the show and tell thread in Plotly Dash community

CopilotAI review requested due to automatic review settingsDecember 16, 2025 16:39
Copy link

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a deprecation warning by replacingasyncio.iscoroutinefunction() withinspect.iscoroutinefunction() across the codebase. Theasyncio version is deprecated as of Python 3.14 and will be removed in Python 3.16.

Key changes:

  • Replace all instances ofasyncio.iscoroutinefunction() withinspect.iscoroutinefunction()
  • Addinspect module imports where needed
  • Remove unusedasyncio import fromdash/_callback.py

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
dash/dash.pyAddedinspect import; replaced two instances ofasyncio.iscoroutinefunction() withinspect.iscoroutinefunction()
dash/background_callback/managers/diskcache_manager.pyAddedinspect import; replacedasyncio.iscoroutinefunction() withinspect.iscoroutinefunction()
dash/background_callback/managers/celery_manager.pyAddedinspect import; replacedasyncio.iscoroutinefunction() withinspect.iscoroutinefunction()
dash/_jupyter.pyReplacedasyncio.iscoroutinefunction() withinspect.iscoroutinefunction() (import likely exists elsewhere in file)
dash/_callback.pyAddedinspect import; replaced two instances ofasyncio.iscoroutinefunction() withinspect.iscoroutinefunction(); removed unusedasyncio import

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

break

ifasyncio.iscoroutinefunction(kernel.do_one_iteration):
ifinspect.iscoroutinefunction(kernel.do_one_iteration):

Choose a reason for hiding this comment

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

Theinspect module is not imported in this file. Addimport inspect at the top of the file to avoid a NameError at runtime.

Copilot uses AI. Check for mistakes.

Choose a reason for hiding this comment

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

It's imported on line 3 😄

Copy link
Contributor

@T4rk1nT4rk1n left a comment

Choose a reason for hiding this comment

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

💃

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@T4rk1nT4rk1nT4rk1n approved these changes

@ndreznndreznAwaiting requested review from ndreznndrezn is a code owner

@emilyklemilyklAwaiting requested review from emilyklemilykl is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@brandonschabell@T4rk1n

[8]ページ先頭

©2009-2025 Movatter.jp