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

MAINT: Convert manually cached BuilderConfig properties to cached_property #1760

Merged
merged 3 commits into from
Nov 9, 2024

Conversation

maresb
Copy link
Contributor

@maresb maresb commented Oct 20, 2024

I'm working up to some other contributions, but wanted to do some preliminary cleanup.

Unless I screwed something up, this is a pure refactor, completely equivalent to the previous code, just a bit more tidy thanks to Python 3.8 features.

@maresb maresb force-pushed the cached-properties branch 4 times, most recently from 60bde5a to fae7a25 Compare October 20, 2024 20:10
Before we cached the empty list and returned None to prevent recomputation
in case None was cached.
@maresb maresb force-pushed the cached-properties branch from fae7a25 to cd9f32c Compare October 21, 2024 09:41
@maresb
Copy link
Contributor Author

maresb commented Oct 21, 2024

Rebased on master without changes for a linear history

@maresb maresb force-pushed the cached-properties branch from cd9f32c to 4e4bc47 Compare October 21, 2024 09:42
Copy link
Collaborator

@ofek ofek left a comment

Choose a reason for hiding this comment

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

I don't have time to thoroughly review this but seems straightforward and more importantly I trust you so I'm going to merge. Thanks!

@ofek ofek merged commit 4a97018 into pypa:master Nov 9, 2024
50 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 9, 2024
…perty (#1760)

Co-authored-by: Ofek Lev <ofekmeister@gmail.com> 4a97018
@maresb maresb deleted the cached-properties branch November 10, 2024 09:42
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.

2 participants