Skip to content

Confusing deprecation notice for typing.IO #834

@rittneje

Description

@rittneje

The docs for typing.IO, typing.TextIO, and typing.BinaryIO include a confusing deprecation notice. https://docs.python.org/3/library/typing.html#typing.IO

Deprecated since version 3.8, will be removed in version 3.12: These types are also in the typing.io namespace, which was never supported by type checkers and will be removed.

Are these types actually deprecated, or just the ones in typing.io? If it is the former, then the documentation should indicate what to use instead. And if it is the latter, then the documentation should be rephrased for clarity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions