-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: add eager_start as an argument. #15211
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: add eager_start as an argument. #15211
Conversation
This comment has been minimized.
This comment has been minimized.
|
Thanks you!
Source FTR: python/cpython#128307 Could you reflect it in your PR? |
|
Thank you for your response and advice. I've reflected my PR by adding |
This comment has been minimized.
This comment has been minimized.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
donbarbos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I have last suggesion: let's also set the default value as in the documentation
| *, | ||
| name: object = None, | ||
| context: Context | None = None, | ||
| eager_start: bool | None = False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| eager_start: bool | None = False, | |
| eager_start: bool | None = None, |
| *, | ||
| name: str | None = None, | ||
| context: Context | None = None, | ||
| eager_start: bool | None = False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| eager_start: bool | None = False, | |
| eager_start: bool | None = None, |
| *, | ||
| name: str | None = None, | ||
| context: Context | None = None, | ||
| eager_start: bool | None = False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| eager_start: bool | None = False, | |
| eager_start: bool | None = None, |
| if sys.version_info >= (3, 11): | ||
| if sys.version_info >= (3, 14): | ||
| def create_task( | ||
| coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None = None, eager_start: bool | None = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None = None, eager_start: bool | None = False | |
| coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None = None, eager_start: bool | None = None |
Fixes eager_start missing in stdlib/asyncio/tasks.pyi #15210