Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cachedproperty decorator #2140

Merged
merged 1 commit into from
Apr 23, 2023
Merged

Conversation

cdce8p
Copy link
Member

@cdce8p cdce8p commented Apr 23, 2023

Description

Followup to #2137
This PR completely removes the cachedproperty decorator. functools.cached_property is a full replacement.

Also update changelog: 2.16.0 -> 3.0.0.

@cdce8p cdce8p added this to the 3.0 milestone Apr 23, 2023
@cdce8p
Copy link
Member Author

cdce8p commented Apr 23, 2023

@DanielNoord Is deprecation the right label? Maybe we should add one for breaking-change?

@DanielNoord
Copy link
Collaborator

@cdce8p Not sure, I was looking in the labels to find one that fit. Feels like they could use a clean up anyway, perhaps by making organisation labels and re-using them across both repo's?

@codecov
Copy link

codecov bot commented Apr 23, 2023

Codecov Report

Merging #2140 (1e2cfb6) into main (a91a8d6) will increase coverage by 0.06%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2140      +/-   ##
==========================================
+ Coverage   92.16%   92.23%   +0.06%     
==========================================
  Files          94       94              
  Lines       10908    10889      -19     
==========================================
- Hits        10053    10043      -10     
+ Misses        855      846       -9     
Flag Coverage Δ
linux 91.99% <ø> (+0.06%) ⬆️
pypy 87.28% <ø> (+0.06%) ⬆️
windows 91.82% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
astroid/decorators.py 85.26% <ø> (+5.43%) ⬆️

@cdce8p cdce8p merged commit 7fa8481 into pylint-dev:main Apr 23, 2023
18 checks passed
@cdce8p cdce8p deleted the remove-cachedproperty branch April 23, 2023 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants