« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1295 ms

Deprecate typing.Hashable/Sized · Issue #94309 · python/cpython

Source: https://github.com/python/cpython/issues/94309

Repository navigation

Deprecate typing.Hashable/Sized  #94309


New issue

New issue

Closed

Closed
Deprecate typing.Hashable/Sized #94309 Labels
docs

easy

topic-typing

type-feature

Description

@Numerlor's profile Numerlor opened on Jun 26, 2022

typing.Hashable and typing.Sized are aliases to their equivalents in the collections.abc module ; PEP 585 deprecated all aliases like these while aiming to remove the duplication between the two modules, but the aforementioned two seem to have been left out of that because they're not generic.

If the others are deprecated, I don't think it makes sense to keep them when they're just aliases that provide no additional functionality

Linked PRs

Reacted by Jelle Zijlstra and Alex Waygood

Metadata

Metadata

Assignees

No one assigned

    Labels


    docs

    easy

    topic-typing

    type-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions