10000 RF: Replace OneTimeProperty/auto_attr with cached_property by effigies · Pull Request #1341 · nipy/nibabel · GitHub
[go: up one dir, main page]

Skip to content

RF: Replace OneTimeProperty/auto_attr with cached_property #1341

8000 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

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

effigies
Copy link
Member

The type annotations of nibabel.onetime.OneTimeProperty have stopped checking with recent mypy. Given that this is redundant with functools.cached_property, it seems cleaner just to replace these synonyms directly with cached_property.

Also grabbed a test from nitime to verify that partial resets succeed.

Small fix for building docs with 3.12 en passant.

Copy link
codecov bot commented Jul 25, 2024

Codecov Report

Attention: Patch coverage is 97.91667% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.34%. Comparing base (beb4f7b) to head (b6eccc2).

Files Patch % Lines
nibabel/tests/test_onetime.py 95.23% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1341   +/-   ##
=======================================
  Coverage   95.34%   95.34%           
=======================================
  Files         207      207           
  Lines       29084    29081    -3     
  Branches     4863     4863           
=======================================
- Hits        27730    27728    -2     
  Misses        923      923           
+ Partials      431      430    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@effigies effigies merged commit 5d10c5b into nipy:master Jul 26, 2024
49 checks passed
@effigies effigies deleted the typ/fix-otp branch July 26, 2024 02:07
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.

1 participant
0