Skip to content

Conversation

@1sahilsanjeev
Copy link

Fixes #15017

Update the create_task method signature in stdlib/asyncio/taskgroups.pyi to include the missing eager_start parameter (bool | None = None) and **kwargs: Any. This aligns the type stub with the actual Python 3.12+ implementation of TaskGroup.create_task().

AI Analysis

This is a simple bug fix for missing parameters in the TaskGroup.create_task() method signature in the type stubs. The issue reports that the eager_start parameter and **kwargs are missing from the method definition in asyncio/taskgroups.pyi.

Changes Made

  • modify: stdlib/asyncio/taskgroups.pyi

AI Model Used

claude-sonnet-4-5-20250929

Confidence Score

95%


This PR was automatically generated by Kodin

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

core (https://github.com/home-assistant/core)
+ homeassistant/components/notion/coordinator.py:133: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ homeassistant/components/notion/coordinator.py:134: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ homeassistant/components/notion/coordinator.py:135: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ homeassistant/components/notion/coordinator.py:136: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ homeassistant/components/ring/coordinator.py:111: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ homeassistant/components/ring/coordinator.py:117: error: "TaskGroup" has no attribute "create_task"  [attr-defined]

typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ src/typeshed_stats/gather.py:1348: error: "TaskGroup" has no attribute "create_task"  [attr-defined]

mypy_primer (https://github.com/hauntsaninja/mypy_primer)
+ mypy_primer/main.py:387: error: "TaskGroup" has no attribute "create_task"  [attr-defined]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/utils.py:416: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/user.py:305: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/gateway.py:406: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/gateway.py:425: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/gateway.py:550: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/gateway.py:553: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/gateway.py:750: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/state.py:1788: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/state.py:1867: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/client.py:309: error: "TaskGroup" has no attribute "create_task"  [attr-defined]
+ steam/_gc/state.py:140: error: "TaskGroup" has no attribute "create_task"  [attr-defined]

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.

TaskGroup create_task missing eager_start and kwargs

1 participant