FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: add unused-asyncio-task error code by DawnofGenX · Pull Request #22198 · python/mypy · GitHub

Repository navigation

feat: add unused-asyncio-task error code - #22198

Open
DawnofGenX wants to merge 4 commits into
python:masterfrom
DawnofGenX:unused-asyncio-task
Open

DawnofGenX wants to merge 4 commits into
python:masterfrom
DawnofGenX:unused-asyncio-task

Conversation

Copy link
Copy Markdown

Summary

Add unused-asyncio-task error code to detect when an asyncio.Task is created but never awaited, which is a common source of bugs.

Changes

  • New error code unused-asyncio-task in mypy/checker.py
  • Detection logic for unawaited asyncio.Task assignments
  • Tests and documentation

Verification

  • New tests pass
  • Existing asyncio-related tests unaffected

This comment has been minimized.

Fixes the docs CI check (VERIFY_MYPY_ERROR_CODES) which requires every
error code to have a _code-<name> reference in the documentation.

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL