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

Remove __future__ imports and use generated sections in object_classes.py #1069

Merged
merged 6 commits into from
Oct 11, 2023

Conversation

anniel-stripe
Copy link
Contributor

@anniel-stripe anniel-stripe commented Oct 11, 2023

This PR:

  1. Removes all from __future__ import absolute_import, division, print_function imports. These imports are no longer necessary, as they are used for forwards compatibility with Python 2.x versions and became the default behavior in Python 3.0 (see https://docs.python.org/3/library/__future__.html). Since stripe-python supports Python >=3.6 as of v6.0.0, this is a non-breaking change.
  2. Updates stripe/object_classes.py to use generated sections, allowing us to manually maintain data structure objects like ListObject (see commit).

Copy link
Contributor

@pakrym-stripe pakrym-stripe left a comment

Choose a reason for hiding this comment

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

A lot of unrelated changes.

@anniel-stripe anniel-stripe merged commit 362f551 into master Oct 11, 2023
10 checks passed
richardm-stripe added a commit that referenced this pull request Oct 11, 2023
* Bump version to 6.7.0

* Better types for search result methods (#1070)

* Remove `__future__` imports and use generated sections in `object_classes.py` (#1069)

* Use generated section in object classes file

* Remove generated __future__ imports

* Remove manual __future__ imports

* Business objects -> Object classes

* regenerate

* Update generated code for v597 (#1071)

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* wip

* Properly deserialize beneath map types

* Generate nested resource classes

* Don't filter out Nones

---------

Co-authored-by: Annie Li <anniel@stripe.com>
Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com>
Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com>
@xavdid-stripe xavdid-stripe deleted the anniel-object-class-section branch May 10, 2024 03:29
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