Skip to content

Remove the orphaned stripe.api_resources package from preview builds 🪿✨ - #1951

Merged
jar-stripe merged 1 commit into
betafrom
fix/distribution-import-checks
Oct 23, 2026
Merged

jar-stripe merged 1 commit into
betafrom
fix/distribution-import-checks

Conversation

@jar-stripe

@jar-stripe jar-stripe commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Why?

The deprecated stripe.api_resources namespace was removed in v13, but the beta branch retains an initializer that imports modules that no longer exist. Delete the leftover package so importing it raises a clean ModuleNotFoundError. Supported imports such as from stripe import Customer continue to work.

What?

  • Delete stripe/api_resources/__init__.py from the beta branch.

Verified all 16 existing export tests pass and the removed namespace raises ModuleNotFoundError with the expected name.

See Also

#1603

Configuration

  • skip-changefile: This PR only cleans up a namespace whose removal was already documented in v13.

@jar-stripe
jar-stripe changed the base branch from master to beta October 22, 2026 02:13
@jar-stripe
jar-stripe force-pushed the fix/distribution-import-checks branch from c45115f to c3f3804 Compare October 22, 2026 23:43
@jar-stripe
jar-stripe marked this pull request as ready for review October 22, 2026 23:45
@jar-stripe
jar-stripe requested a review from a team as a code owner October 22, 2026 23:45
@jar-stripe
jar-stripe requested review from justiny-stripe and removed request for a team October 22, 2026 23:45
@jar-stripe
jar-stripe enabled auto-merge (squash) October 22, 2026 23:45
@jar-stripe
jar-stripe merged commit d78aecd into beta Oct 23, 2026
23 checks passed
@jar-stripe
jar-stripe deleted the fix/distribution-import-checks branch October 23, 2026 00:10
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