Skip to content

Adds v2-event-imports section to static v2/core/_event.py file - #1861

Open
jar-stripe wants to merge 1 commit into
masterfrom
jar/v2-core-event-dynamic-imports
Open

Adds v2-event-imports section to static v2/core/_event.py file#1861
jar-stripe wants to merge 1 commit into
masterfrom
jar/v2-core-event-dynamic-imports

Conversation

@jar-stripe

Copy link
Copy Markdown
Contributor

Why?

The latest release includes better types for "open" enums, i.e. enums that can contain values added to the API after the SDK release. These types are declared with typing.Union, but we cannot import Union without actually using it or else we anger the linter. We changed our code generator to expect a dynamic section in v2/core/_event.py to make sure the imports generate correctly. This PR adopts a dynamic section already in our beta and private-preview branches to correspond with that change.

What?

  • adds v2-event-imports section to manually maintained _event.py file. this matches the file format used in beta and private-preview

See Also

file format used in beta and private-preview
@jar-stripe
jar-stripe marked this pull request as ready for review July 30, 2026 21:23
@jar-stripe
jar-stripe requested a review from a team as a code owner July 30, 2026 21:23
@jar-stripe
jar-stripe requested review from zacchua-stripe and removed request for a team July 30, 2026 21:23
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