Skip to content

asyncio.graph.format_call_graph() should use io.Writer instead of typing.TextIO #133893

Closed
@srittau

Description

@srittau

Feature or enhancement

Proposal:

The file argument to format_call_graph() gets forwarded to print(file), which is annotated as _typeshed.SupportsWrite[str] in typeshed. SupportsWrite is typeshed's legacy variant of io.Writer.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions