Skip to content

move Callable and other types that don't belong in collections.abc to another moduleΒ #126470

@DetachHead

Description

@DetachHead

Feature or enhancement

Proposal:

types like Callable and Awaitable are completely unrelated to "collections", therefore collections.abc is clearly the wrong place for them, so the fact that typing.Callable and typing.Awaitable are deprecated in favor of these aliases is very confusing.

imo they should either be moved to a different module, or the versions in typing should be un-deprecated until a more suitable location for them is decided

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions