Skip to content

Conversation

shnizzedy
Copy link
Member

Related to #1426 by @pcasl
Related to #1220 by @effigies

Description

This PR adds a stub file for the top-level __init__.py, including an __all__ to expose the types of all symbols imported or defined therein.

Screenshots

Without the stub file

warning: "load" is not exported from module "nibabel"

With the stub file

no warning

Copy link

codecov bot commented Sep 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.44%. Comparing base (4ee2a49) to head (0e7908c).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1436      +/-   ##
==========================================
+ Coverage   95.24%   95.44%   +0.19%     
==========================================
  Files         209      209              
  Lines       29782    29782              
  Branches     3357     4472    +1115     
==========================================
+ Hits        28366    28424      +58     
+ Misses        958      925      -33     
+ Partials      458      433      -25     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@effigies effigies merged commit 132ded6 into nipy:master Sep 25, 2025
61 checks passed
@shnizzedy shnizzedy deleted the jc/stub-__init__ branch September 25, 2025 18:41
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