Skip to content

Add __set__ to functools.cached_property#9762

Merged
AlexWaygood merged 4 commits intopython:mainfrom
tmke8:cached-property-set
Feb 20, 2023
Merged

Add __set__ to functools.cached_property#9762
AlexWaygood merged 4 commits intopython:mainfrom
tmke8:cached-property-set

Conversation

@tmke8
Copy link
Copy Markdown
Contributor

@tmke8 tmke8 commented Feb 19, 2023

closes #9726

See discussion in the linked issue.

There shouldn't be any change in mypy_primer, because mypy already special-cases @cached_property to be settable.

@github-actions

This comment has been minimized.

Comment thread test_cases/stdlib/check_functools.py Outdated
Copy link
Copy Markdown
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! I'll leave this open for a few days in case any other maintainers have objections, will merge otherwise :)

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit 40d853c into python:main Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make @cached_property settable?

3 participants