Skip to content

gh-94309: Deprecate typing.Hashable/Sized - #94626

Merged
Fidget-Spinner merged 4 commits into
python:mainfrom
MonadChains:gh-94309/deprecate-hashed-sized
Jul 10, 2022
Merged

Fidget-Spinner merged 4 commits into
python:mainfrom
MonadChains:gh-94309/deprecate-hashed-sized

Conversation

@MonadChains

@MonadChains MonadChains commented Jul 6, 2022 •

Copy link
Copy Markdown
Contributor

#94309
To be consistent with PEP 585, deprecated aliases should not raise any DeprecationWarning.

I put as first version of deprecation the upcoming Python 3.12 (I am not fully sure about this though).

To be consistent with PEP 585, deprecated aliases should not raise any DeprecationWarning.
@ghost

ghost commented Jul 6, 2022 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot

Copy link
Copy Markdown

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@bedevere-bot bedevere-bot added the docs Documentation in the Doc dir label Jul 6, 2022
@MonadChains MonadChains changed the title Gh 94309/deprecate hashed sized gh-94309: Deprecate typing.Hashable/Sized Jul 6, 2022

@Fidget-Spinner Fidget-Spinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecating in 3.12 is correct. I think this is almost ready to merge. Good work!

Comment thread Doc/library/typing.rst Resolved
@AlexWaygood AlexWaygood added topic-typing type-feature A feature request or enhancement labels Jul 7, 2022

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a row to this table at the bottom of the page, as well? https://docs.python.org/3.12/library/typing.html#deprecation-timeline-of-major-features

@Fidget-Spinner Fidget-Spinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM too!

@Fidget-Spinner
Fidget-Spinner merged commit e8e4b55 into python:main Jul 10, 2022
@Fidget-Spinner

Copy link
Copy Markdown
Member

@MonadChains congrats on your first contribution to CPython 🎉 . I look forward to more of your contributions in the future.

@hugovk

hugovk commented Jul 10, 2022

Copy link
Copy Markdown
Member

Shall we also add this to "What’s New In Python 3.12" in the docs?

Because we don't have a set version for removal, it can go in the "Pending Removal in Future Versions" section:

https://docs.python.org/3.12/whatsnew/3.12.html#pending-removal-in-future-versions

(Sorry for the late suggestion!)

@Fidget-Spinner

Copy link
Copy Markdown
Member

Shall we also add this to "What’s New In Python 3.12" in the docs?

Yes we should.

@MonadChains
MonadChains deleted the gh-94309/deprecate-hashed-sized branch July 10, 2022 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir topic-typing type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants