-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
There are currently three functions, all undocumented helpers, in the asyncio base_tasks stub. These are:
_task_repr_info(task: Task) -> list[str]_task_get_stack(task: Task, limit: int|None) -> list[FrameType]_task_print_stack(task: Task, limit: int|None, file: StrOrBytesPath) -> None
However, looking at the newest source (this was probably added earlier, but I don't want to dig for it):
@reprlib.recursive_repr()
def _task_repr(task):
info = ' '.join(_task_repr_info(task))
return f'<{task.__class__.__name__} {info}>'The _task_repr function is missing from the stubs. Seeing as though all of its siblings, which are no more documented, are included, I presume this should be too.
Since this has a trivial fix, I will open a PR directly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels